From: Carlos Lopez Date: Sun, 28 Nov 2010 13:33:49 +0000 (+0100) Subject: Fix bug: Change default bline width spin button without first focus a canvas window... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cfae4f0c7cbb390e6c2b4da2c08b6fc259173e3b;p=synfig.git 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) --- 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..."));