Dynamic Offset ignores document units
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
When manually setting up the value of "inkscape:radius" in XML-Editor (Shift+Ctrl+X) it is always corresponds to "mm" units.
My system is: Windows 7 Professional (SP1) x64
My Inkscape version is: 0.92.0 r15299
Issue may be noticed doing same steps in two (or more) differently set properties of document:
Case 1
1. Document Properties (Shift+Ctrl+D) -- Page -- General -- Display units : "mm"
2. Creating rectangle any size you wish, mine is: W: 10 mm; H: 5 mm
3. Duplicate object (Ctrl+D)
4. Applying Dynamic Offset (Ctrl+J)
5. Open XML-Editor (Shift+Ctrl+X)
6. Setting value for "inkscape:radius" to 1
7. Checking dimensions of that new object: W: 12 mm; H: 7 mm
Conclusion:
All fine as expected W = 10 + 2 * 1 = 12 mm; H = 5 + 2 * 1 = 7 mm.
Case 2
1. Document Properties (Shift+Ctrl+D) -- Page -- General -- Display units : "px"
2. Creating rectangle any size you wish, mine is: W: 100 px; H: 50 px
3. Duplicate object (Ctrl+D)
4. Applying Dynamic Offset (Ctrl+J)
5. Open XML-Editor (Shift+Ctrl+X)
6. Setting value for "inkscape:radius" to 1
7. Checking dimensions of that new object: W: 107.562 px; H: 57.557 px
Conclusion:
δW = 107.562 - 100 = 7.562 px which is roughly 2 * 3.779527559 (approximate "mm" to "px" conversion rate)
δH = 57.557 - 50 = 7.557 px (!) Why not the same? (Side question)
I wouldn't like do describe all other cases for rest of units, I've check some (cm, pt) and convinced Application treat value as "mm" unit always
I found that when you change display unis in the Document Properties dialog, the scale factor also changes. Set the scale factor in the same dialog to 1 when you change mm to px and you should be able to change "inkscape:radius" in proper units.
Caution, all document contents are scaled proportionally to the factor if you change it from the value that Inkscape offer to you.