Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_get_var__.m +++ b/scripts/plot/util/private/__gnuplot_get_var__.m @@ -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__");