diff scripts/plot/closereq.m @ 8246:db19494c7c2a

closereq.m: Respect property tag.
author Ben Abbott <bpabbott@mac.com>
date Mon, 20 Oct 2008 11:25:15 -0400
parents 5747be3ac497
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/plot/closereq.m
+++ b/scripts/plot/closereq.m
@@ -33,7 +33,7 @@
       warning ("closereq: calling closereq from octave prompt is not supported, use `close' instead");
       cf = get (0, "currentfigure");
     endif
-    if (! isempty (cf) && cf != 0)
+    if (! isempty (cf) && isfigure (cf))
       delete (cf);
     endif
   else