Mercurial > octave
diff libinterp/corefcn/graphics.in.h @ 19987:3f461c2b990e
Don't reset toolkit when the name hasn't changed
* graphics.in.h (figure::properties::set___graphics_toolkit__ ()): do not
reset the value of the __graphics_toolkit__ if it doesn't change.
Avoids the figure to be finalized/re-initialized.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Fri, 27 Mar 2015 08:55:38 +0100 |
parents | f134ee404041 |
children | ae12edf69bce |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.in.h Wed Mar 25 12:25:23 2015 -0400 +++ b/libinterp/corefcn/graphics.in.h Fri Mar 27 08:55:38 2015 +0100 @@ -3401,8 +3401,11 @@ } else { - set_toolkit (b); - mark_modified (); + if (nm != get___graphics_toolkit__ ()) + { + set_toolkit (b); + mark_modified (); + } } } else