summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2738661)
raw | patch | inline | side by side (parent: 2738661)
author | JazzyNico <nicoduf@yahoo.fr> | |
Sun, 2 May 2010 12:02:35 +0000 (14:02 +0200) | ||
committer | JazzyNico <nicoduf@yahoo.fr> | |
Sun, 2 May 2010 12:02:35 +0000 (14:02 +0200) |
src/extension/param/float.cpp | patch | blob | history |
index 11e3a8d97c51b69d9e89a5f355454ff83d95610a..5dce0f9e3dd22bb4adbb032493a9a0ef33f1a2d0 100644 (file)
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");