Extension floating point default value and locales
Bug #571196 reported by
jazzynico
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
jazzynico |
Bug Description
Based on Question #108634, by Nick.
--
I'm writing gcode tools extension (http://
How can I adjust proper default value to the floating point parameter?
If I run Inkscape in Russian locale, then it thinks that "0.02" is "0", because in Russian locale default delimiter is "," instead of "." in English one. This problem may appear in other locales.
Related branches
Changed in inkscape: | |
assignee: | nobody → JazzyNico (jazzynico) |
milestone: | none → 0.48 |
status: | Confirmed → In Progress |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Confirmed with French OS locale on Windows XP. Default float values (set in .inx files) have their decimal part replaced with 0.
When the value is modified in the extension dialog, it is correctly saved to the preferences.xml file (as 0.02) and correctly displayed in the UI (as 0,02).
Works as expected if the locale default delimiter is set to ".".