Mercurial > octave-nkf
changeset 20022: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 | 4840fc43f0b5 |
children | 30681f6e3f65 |
files | libinterp/corefcn/graphics.in.h |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
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