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