Mercurial > hgweb > octave
changeset 32286:774c54278e97
print.m: Run new test only with graphics toolkit "qt" (bug #64510).
* scripts/plot/util/print.m: Run test involving printing an invisible figure
only with graphics toolkit "qt".
| author | Markus Mützel <markus.muetzel@gmx.de> |
|---|---|
| date | Wed, 30 Aug 2023 19:12:53 +0200 |
| parents | d2540b8c9fdd |
| children | 197dc8992606 |
| files | scripts/plot/util/print.m |
| diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/print.m +++ b/scripts/plot/util/print.m @@ -828,7 +828,9 @@ endfunction ## Print to file with and without file extension -%!test +%!testif ; (have_window_system () && any (strcmp ("qt", available_graphics_toolkits ()))) +%! toolkit = graphics_toolkit (); +%! graphics_toolkit ("qt"); %! hf = figure ("visible", "off"); %! unwind_protect %! x = 0:0.1:1; @@ -843,6 +845,7 @@ %! unlink (tmp_name); %! unwind_protect_cleanup %! close (hf); +%! graphics_toolkit (toolkit); %! end_unwind_protect %!error <a graphics handle>
