diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-12-18 14:14:56 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-12-18 14:14:56 +0000 |
| commit | 0e92e8e519b33b35ab63600c31feb7c639e347a6 (patch) | |
| tree | 2d5f596633bc24f93921c6ed1a75c36a2880eed8 /src/preferences.cpp | |
| parent | Add ability to create SVG 2 text: (diff) | |
| download | inkscape-0e92e8e519b33b35ab63600c31feb7c639e347a6.tar.gz inkscape-0e92e8e519b33b35ab63600c31feb7c639e347a6.zip | |
Change parsing an integer from 'atoi' to 'strtol' to allow parsing hexidecimal values.
Diffstat (limited to 'src/preferences.cpp')
| -rw-r--r-- | src/preferences.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp index 79b60191f..a0551d959 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -854,7 +854,7 @@ int Preferences::_extractInt(Entry const &v) v.value_int = 0; return false; } else { - v.value_int = atoi(s); + v.value_int = (int)strtol(s, nullptr, 0); return v.value_int; } } |
