Mercurial > octave-nkf
comparison libinterp/corefcn/graphics.cc @ 20118:ade6e5ae6164
Stop unexpected switches between graphic toolkits (bug #44838).
* graphics.cc (gh_manager::do_make_figure_handle): After making default figure,
use override_defaults to update __graphics_toolkit__ property with current
toolkit.
author | Pantxo <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 17 Apr 2015 08:58:47 -0700 |
parents | 69f92e0affd2 |
children | 1f9ed81bd173 |
comparison
equal
deleted
inserted
replaced
20117:d6e523825abc | 20118:ade6e5ae6164 |
---|---|
9301 | 9301 |
9302 // Notify graphics toolkit. | 9302 // Notify graphics toolkit. |
9303 if (do_notify_toolkit) | 9303 if (do_notify_toolkit) |
9304 obj.initialize (); | 9304 obj.initialize (); |
9305 | 9305 |
9306 obj.override_defaults (); | |
9307 | |
9306 return h; | 9308 return h; |
9307 } | 9309 } |
9308 | 9310 |
9309 void | 9311 void |
9310 gh_manager::do_push_figure (const graphics_handle& h) | 9312 gh_manager::do_push_figure (const graphics_handle& h) |