changeset 18612:02a61d7c2de0 stable

waitbar.m: Fix regression of plots openin in waitbar window (bug #41914). * waitbar.m: Always restore the root figures current figure, even when it is empty, so that the waitbar figure never becomes the current figure.
author Rik <rik@octave.org>
date Thu, 20 Mar 2014 21:57:14 -0700
parents 756e906bdfda
children 2ce1f1966fc3
files scripts/gui/waitbar.m
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/gui/waitbar.m	Thu Mar 20 08:56:39 2014 -0700
+++ b/scripts/gui/waitbar.m	Thu Mar 20 21:57:14 2014 -0700
@@ -129,9 +129,7 @@
     endif
     title (ax, msg);
 
-    if (! isempty (cf))
-      set (0, "currentfigure", cf);
-    endif
+    set (0, "currentfigure", cf);
   endif
 
   drawnow ();