if (value != NULL)
{
- char *cur = setlocale (LC_NUMERIC, NULL);
+ char *cur = g_strdup (setlocale (LC_NUMERIC, NULL));
gfloat fval = strtod (value, NULL);
-
+
setlocale (LC_NUMERIC, "C");
ret = g_strdup_printf ("%f", fval);
-
+
setlocale (LC_NUMERIC, cur);
g_free (value);
priv->original_value = 0.0;
setlocale (LC_NUMERIC, "");
- ret = gtk_form_field_float_set_value_stringify (field, "0.0");
+ ret = gtk_form_field_float_set_value_stringify (field, "0.0");
}
else
{