comparison libinterp/corefcn/graphics.in.h @ 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 f134ee404041
children ae12edf69bce
comparison
equal deleted inserted replaced
20021:4840fc43f0b5 20022:3f461c2b990e
3399 { 3399 {
3400 error ("set___graphics_toolkit__: invalid graphics toolkit"); 3400 error ("set___graphics_toolkit__: invalid graphics toolkit");
3401 } 3401 }
3402 else 3402 else
3403 { 3403 {
3404 set_toolkit (b); 3404 if (nm != get___graphics_toolkit__ ())
3405 mark_modified (); 3405 {
3406 set_toolkit (b);
3407 mark_modified ();
3408 }
3406 } 3409 }
3407 } 3410 }
3408 else 3411 else
3409 error ("set___graphics_toolkit__ must be a string"); 3412 error ("set___graphics_toolkit__ must be a string");
3410 } 3413 }