Setting grid origin has no effect
Bug #561503 reported by
Hynek Mlnarik
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Low
|
zcgucas |
Bug Description
I'm using Inkscape 0.47, Windows build, Czech locale.
I'm trying to set up a rectangular grid. My document is measured in pixels, and the grid should be every 1 pixel both in X and Y dimensions. This works, however trying to set the grid origin to be set to (0.5, 0.5) does not, the grid origin remains set to (0,0). Setting the origin to (1.5, 1.5) works correctly, though.
This seems to be a bug to me. Maybe locale is the issue as in Czech localization? We use comma (,) instead of dot (.) as the decimal point, ie. Czech "0,5" is the same as English "0.5", see attached grid definition.
Changed in inkscape: | |
status: | Confirmed → Triaged |
tags: | added: easy-fix |
tags: | removed: easy-fix |
tags: | removed: backport-proposed |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
reproduced with Inkscape 0.47 and 0.47+devel r9319 on OS X 10.5.8
with both
LANG=en_US.UTF-8 (decimal point '.')
LANG=de_DE.UTF-8 (decimal point ',')
The bug is not related to the size of the origin offset: only the second time a number is entered into the same origin offset field it is picked up and used in the document i.e. the first offset value entered in a new or previously unedited grid (confirmed with <Enter>, <Return> or <TAB>) it is ignored. This can be verified with the XML Editor - the value for the origin offset is live-updated on change. This error is not noticeable when using the spinbutton arrows or the scroll wheel to adjust the value.
AFAICS this bug is not triggered by or limited to certain locale setting.
Workaround: if you enter the value with the keyboard, adjust it one step up and back down using the spinbox arrows (or the mouse wheel) or enter a second (different) value.