From: JazzyNico Date: Sun, 2 May 2010 12:02:35 +0000 (+0200) Subject: Extensions. Use locale dependent string to float convertion for default values (Bug... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff52e3b5bcebda30e395566b9d4101fc92a09c2c;p=inkscape.git Extensions. Use locale dependent string to float convertion for default values (Bug #571196). --- diff --git a/src/extension/param/float.cpp b/src/extension/param/float.cpp index 11e3a8d97..5dce0f9e3 100644 --- a/src/extension/param/float.cpp +++ b/src/extension/param/float.cpp @@ -26,11 +26,11 @@ namespace Extension { ParamFloat::ParamFloat (const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, bool gui_hidden, const gchar * gui_tip, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml) : Parameter(name, guitext, desc, scope, gui_hidden, gui_tip, ext), _value(0.0), _min(0.0), _max(10.0) { - const char * defaultval = NULL; + const gchar * defaultval = NULL; if (sp_repr_children(xml) != NULL) defaultval = sp_repr_children(xml)->content(); if (defaultval != NULL) { - _value = atof(defaultval); + _value = g_ascii_strtod (defaultval,NULL); } const char * maxval = xml->attribute("max");