Module: synfig/synfig Branch: master Commit: cfae4f0c7cbb390e6c2b4da2c08b6fc259173e3b URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=cfae4f0c7cbb390e6c2b4da2c08b6fc259173e3b
Author: Carlos Lopez <[email protected]> Date: Sun Nov 28 14:33:49 2010 +0100 Fix bug: Change default bline width spin button without first focus a canvas window produces undesired change to 1.0 unit in the width size. Additionally it produces this message in the console: Distance::ident_system(): Unknown distance system ".00pt" It only happens for non English locale (i.e. Spanish) --- synfig-studio/src/gui/app.cpp | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/synfig-studio/src/gui/app.cpp b/synfig-studio/src/gui/app.cpp index 0f8d3bd..1cb0819 100644 --- a/synfig-studio/src/gui/app.cpp +++ b/synfig-studio/src/gui/app.cpp @@ -1322,6 +1322,13 @@ App::App(int *argc, char ***argv): studio_init_cb.task(_("Loading Settings...")); load_settings(); device_tracker->load_preferences(); + // If the default bline width is modified before focus a canvas + // window, the Distance widget doesn't understand the given value + // and produces this message: + // Distance::ident_system(): Unknown distance system ".00pt" + // setting the default bline width to 1 unit. + // This line fixes that. + synfigapp::Main::set_bline_width(synfigapp::Main::get_selected_input_device()->get_bline_width()); studio_init_cb.task(_("Checking auto-recover...")); ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
