# HG changeset patch # User Ben Abbott # Date 1223596710 14400 # Node ID c0b8d274bc6c417282bf8fa08cf9699191926392 # Parent 963f94ba4e2a998eb34b82451b4b879badfdc3dd closereq.m: Respect property tag. diff -r 963f94ba4e2a -r c0b8d274bc6c scripts/ChangeLog --- a/scripts/ChangeLog Wed Oct 08 14:31:59 2008 -0400 +++ b/scripts/ChangeLog Thu Oct 09 19:58:30 2008 -0400 @@ -1,3 +1,7 @@ +2008-10-09 Ben Abbott + + * plot/closereq.m: Respect property tag. + 2008-10-08 John W. Eaton * miscellaneous/fileparts.m: Handle "/file" properly. diff -r 963f94ba4e2a -r c0b8d274bc6c scripts/plot/closereq.m --- a/scripts/plot/closereq.m Wed Oct 08 14:31:59 2008 -0400 +++ b/scripts/plot/closereq.m Thu Oct 09 19:58:30 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