--- scripts/plot/clf.m.orig 2009-02-18 07:57:46.000000000 +0100 +++ scripts/plot/clf.m 2009-02-25 14:13:41.000000000 +0100 @@ -71,7 +71,9 @@ hc = get (hfig, "children"); endif + set (hfig, "currentaxes", []); ## Delete the children. - delete (hc); - + if (ishandle (hc)) + delete (hc); + endif endfunction