diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2010-05-02 12:02:35 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2010-05-02 12:02:35 +0000 |
| commit | 7cd8eefb2bfd638ba334b2034e41c69b68677310 (patch) | |
| tree | 44613f476d5c04d1fe671a44d3fa9f03c9530c6c /src | |
| parent | Follow-up to bug 427514 specific to icon preview, which happened to fix bug #... (diff) | |
| download | inkscape-7cd8eefb2bfd638ba334b2034e41c69b68677310.tar.gz inkscape-7cd8eefb2bfd638ba334b2034e41c69b68677310.zip | |
Extensions. Use locale dependent string to float convertion for default values (Bug #571196).
Fixed bugs:
- https://launchpad.net/bugs/571196
(bzr r9391)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/param/float.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |
