diff scripts/plot/clf.m @ 6780:38bc358b6c9a

[project @ 2007-07-18 18:02:56 by jwe]
author jwe
date Wed, 18 Jul 2007 18:04:56 +0000
parents 73fcbac81f33
children 76e3d985ae56
line wrap: on
line diff
--- a/scripts/plot/clf.m
+++ b/scripts/plot/clf.m
@@ -30,7 +30,9 @@
     cf = gcf ();
     set (cf, "currentaxes", []);
     for k = get (cf, "children")
-      delete (k);
+      if (ishandle (k))
+        delete (k);
+      endif
     endfor
   else
     print_usage ();