projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevent unsafe thread change of local settings using synfig::ChangeLocale class
[synfig.git]
/
synfig-studio
/
src
/
gui
/
states
/
state_smoothmove.cpp
diff --git
a/synfig-studio/src/gui/states/state_smoothmove.cpp
b/synfig-studio/src/gui/states/state_smoothmove.cpp
index
3b4f36c
..
36bfecd
100644
(file)
--- a/
synfig-studio/src/gui/states/state_smoothmove.cpp
+++ b/
synfig-studio/src/gui/states/state_smoothmove.cpp
@@
-157,14
+157,13
@@
StateSmoothMove_Context::load_settings()
{
try
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
String value;
if(settings.get_value("smooth_move.radius",value))
set_radius(atof(value.c_str()));
else
set_radius(1.0f);
String value;
if(settings.get_value("smooth_move.radius",value))
set_radius(atof(value.c_str()));
else
set_radius(1.0f);
- SETTINGS_LOCALE_RESTORE
}
catch(...)
{
}
catch(...)
{
@@
-177,9
+176,8
@@
StateSmoothMove_Context::save_settings()
{
try
{
{
try
{
- SETTINGS_LOCALE_SAFE_AND_BACKUP
+ synfig::ChangeLocale change_locale(LC_NUMERIC, "C");
settings.set_value("smooth_move.radius",strprintf("%f",get_radius()));
settings.set_value("smooth_move.radius",strprintf("%f",get_radius()));
- SETTINGS_LOCALE_RESTORE
}
catch(...)
{
}
catch(...)
{