{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
if(key=="gamma")
{
value=strprintf("%f %f %f %f",
value=strprintf("%s",App::predefined_fps.c_str());
return true;
}
- SETTINGS_LOCALE_RESTORE
}
catch(...)
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
if(key=="gamma")
{
float r,g,b,blk;
App::predefined_fps=value;
return true;
}
- SETTINGS_LOCALE_RESTORE
}
catch(...)
{
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..."));
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
{
std::string filename=get_config_file("accelrc");
Gtk::AccelMap::save(filename);
}while(0);
std::string filename=get_config_file("settings");
synfigapp::Main::settings().save_to_file(filename);
- SETTINGS_LOCALE_RESTORE
+
}
catch(...)
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
{
std::string filename=get_config_file("accelrc");
Gtk::AccelMap::load(filename);
reset_initial_window_configuration();
}
}
- SETTINGS_LOCALE_RESTORE
+
}
catch(...)
{