Mercurial > hg > octave-nkf
diff scripts/plot/graphics_toolkit.m @ 17107:dbd64c9a16da
Restore graphics toolkit after %!tests that alter it.
* scripts/plot/allchild.m, scripts/plot/findall.m, scripts/plot/findobj.m,
scripts/plot/graphics_toolkit.m, scripts/plot/legend.m, scripts/plot/uimenu.m:
Restore graphics toolkit after %!tests that alter it.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 29 Jul 2013 12:23:10 -0700 |
parents | e39f00a32dc7 |
children | eaab03308c0b |
line wrap: on
line diff
--- a/scripts/plot/graphics_toolkit.m +++ b/scripts/plot/graphics_toolkit.m @@ -90,10 +90,10 @@ %!testif HAVE_FLTK %! unwind_protect -%! hf = figure ("visible", "off"); +%! hf = figure ("visible", "off"); %! toolkit = graphics_toolkit (); %! assert (get (0, "defaultfigure__graphics_toolkit__"), toolkit); -%! graphics_toolkit (hf, "fltk"); +%! graphics_toolkit (hf, "fltk"); %! assert (graphics_toolkit (hf), "fltk"); %! unwind_protect_cleanup %! close (hf);