changeset 8246:db19494c7c2a

closereq.m: Respect property tag.
author Ben Abbott <bpabbott@mac.com>
date Mon, 20 Oct 2008 11:25:15 -0400
parents 166a689b77a9
children e41f420875db
files scripts/ChangeLog scripts/plot/closereq.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Mon Oct 20 16:19:23 2008 +0100
+++ b/scripts/ChangeLog	Mon Oct 20 11:25:15 2008 -0400
@@ -13,6 +13,8 @@
 
 2008-10-20  Ben Abbott  <bpabbott@mac.com>
 
+	* plot/closereq.m: Respect property tag.
+
 	* plot/__stem__.m: Respect new ordering of children when setting
 	baseline.
 
--- a/scripts/plot/closereq.m	Mon Oct 20 16:19:23 2008 +0100
+++ b/scripts/plot/closereq.m	Mon Oct 20 11:25:15 2008 -0400
@@ -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