From cfae4f0c7cbb390e6c2b4da2c08b6fc259173e3b Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Sun, 28 Nov 2010 14:33:49 +0100 Subject: [PATCH] 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 file changed, 7 insertions(+) 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...")); -- 2.7.4