Mercurial > octave-dspies
comparison scripts/gui/waitbar.m @ 18578: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 | d63878346099 |
children | e7b347dcfc63 |
comparison
equal
deleted
inserted
replaced
18574:756e906bdfda | 18578:02a61d7c2de0 |
---|---|
127 if (! (ischar (msg) || iscellstr (msg))) | 127 if (! (ischar (msg) || iscellstr (msg))) |
128 msg = "Please wait..."; | 128 msg = "Please wait..."; |
129 endif | 129 endif |
130 title (ax, msg); | 130 title (ax, msg); |
131 | 131 |
132 if (! isempty (cf)) | 132 set (0, "currentfigure", cf); |
133 set (0, "currentfigure", cf); | |
134 endif | |
135 endif | 133 endif |
136 | 134 |
137 drawnow (); | 135 drawnow (); |
138 | 136 |
139 if (nargout > 0) | 137 if (nargout > 0) |