X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Fsrc%2Fgui%2Fstates%2Fstate_bline.cpp;h=935e6827a7b64aae1859c66baf6469138b29ffc5;hb=477fd4ea9c6133e098572554a9eadbf503e27fab;hp=9d0a10ced567bb381e179282370c092e033f3fb1;hpb=e141439cbbdfbd8c711386d988d398bb2f2ee47a;p=synfig.git diff --git a/synfig-studio/src/gui/states/state_bline.cpp b/synfig-studio/src/gui/states/state_bline.cpp index 9d0a10c..935e682 100644 --- a/synfig-studio/src/gui/states/state_bline.cpp +++ b/synfig-studio/src/gui/states/state_bline.cpp @@ -238,7 +238,7 @@ StateBLine_Context::load_settings() { try { - SETTINGS_LOCALE_SAFE_AND_BACKUP + synfig::ChangeLocale change_locale(LC_NUMERIC, "C"); String value; if(settings.get_value("bline.layer_region",value) && value=="0") @@ -281,9 +281,7 @@ StateBLine_Context::load_settings() Real n = atof(value.c_str()); set_feather(n); } - sanity_check(); - SETTINGS_LOCALE_RESTORE } catch(...) { @@ -296,7 +294,7 @@ StateBLine_Context::save_settings() { try { - SETTINGS_LOCALE_SAFE_AND_BACKUP + synfig::ChangeLocale change_locale(LC_NUMERIC, "C"); sanity_check(); settings.set_value("bline.layer_outline",get_layer_outline_flag()?"1":"0"); settings.set_value("bline.layer_region",get_layer_region_flag()?"1":"0"); @@ -306,7 +304,6 @@ StateBLine_Context::save_settings() settings.set_value("bline.auto_export",get_auto_export_flag()?"1":"0"); settings.set_value("bline.id",get_id().c_str()); settings.set_value("bline.feather",strprintf("%f",get_feather())); - SETTINGS_LOCALE_RESTORE } catch(...) {