# HG changeset patch # User Rik # Date 1398706898 25200 # Node ID 0b95b9c5ac711a5980b352fa4fabfa133214f8a1 # Parent 7bccc182e2f7df37c17d6888cd3d091e87df36dc __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. diff -r 7bccc182e2f7 -r 0b95b9c5ac71 scripts/plot/util/private/__gnuplot_get_var__.m --- 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__");