changeset 18693:0b95b9c5ac71 stable

__gnuplot_get_var__.m: Fix accidental use of gcf causing figure popus in waitbar (bug #41446). * __gnuplot_get_var__.m: Use figure handle h, rather than gcf, when querying for an open plot_stream.
author Rik <rik@octave.org>
date Mon, 28 Apr 2014 10:41:38 -0700
parents 7bccc182e2f7
children 1a5dabbaa559 d565a5f5e06e
files scripts/plot/util/private/__gnuplot_get_var__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_get_var__.m	Thu Apr 24 20:23:48 2014 -0700
+++ b/scripts/plot/util/private/__gnuplot_get_var__.m	Mon Apr 28 10:41:38 2014 -0700
@@ -27,7 +27,7 @@
 function gp_var_value = __gnuplot_get_var__ (h, gp_var_name, fmt = "")
 
   if (numel (h) == 1 && isfigure (h))
-    if (isempty (get (gcf, "__plot_stream__")))
+    if (isempty (get (h, "__plot_stream__")))
       ostream = __gnuplot_open_stream__ (2, h);
     else
       ostream = get (h, "__plot_stream__");