comparison scripts/plot/util/private/__gnuplot_get_var__.m @ 18848: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 d63878346099
children 6ca096827123
comparison
equal deleted inserted replaced
18829:7bccc182e2f7 18848:0b95b9c5ac71
25 ## Created: 2009-02-07 25 ## Created: 2009-02-07
26 26
27 function gp_var_value = __gnuplot_get_var__ (h, gp_var_name, fmt = "") 27 function gp_var_value = __gnuplot_get_var__ (h, gp_var_name, fmt = "")
28 28
29 if (numel (h) == 1 && isfigure (h)) 29 if (numel (h) == 1 && isfigure (h))
30 if (isempty (get (gcf, "__plot_stream__"))) 30 if (isempty (get (h, "__plot_stream__")))
31 ostream = __gnuplot_open_stream__ (2, h); 31 ostream = __gnuplot_open_stream__ (2, h);
32 else 32 else
33 ostream = get (h, "__plot_stream__"); 33 ostream = get (h, "__plot_stream__");
34 endif 34 endif
35 else 35 else