# HG changeset patch # User Pantxo Diribarne # Date 1427442938 -3600 # Node ID 3f461c2b990e3c945036264fb9a58bb879806704 # Parent 4840fc43f0b5481a92840e7965026076651aa957 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. diff -r 4840fc43f0b5 -r 3f461c2b990e libinterp/corefcn/graphics.in.h --- 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