Offset LPE--Unit Bug (v1.0 beta2)
What happened?
Offset LPE failed to offset by correct amount. I set Unit to "in" and Offset to 1.0. The path's final size was 1.079 in (an effective offset of only 0.0395 in). I have tested other units as well, none give the correct offset.
What should have happened?
The path should have a final size of 3.00 in rather than 1.079 in.
Steps to reproduce:
- Open Inkscape
- Open Document Properties and set Display Units to "in"
- Draw 1x1 in square with Rectangle Tool
- Apply Offset LPE
- Set Unit to "in"
- Set Offset to 1.0
My Suspicion:
After some testing, I believe I have identified the cause of the issue. It appears that the Offset LPE will only give the correct offset if the Inkscape Display Units is set to "mm" (Document Properties). I most often work in either "in" or "px".
When I set the document display units to "mm", then the Offset LPE gives the correct offset. Note: it will give the correct offset in whatever units are selected in the LPE, as long as the display units are left as "mm"
Proposed Solution:
The conversion math behind Offset LPE needs to correctly account for/match display units (instead of assuming "mm"?)
Example file:
Inkscape Version and Operating System:
- Inkscape Version: 1.0beta2 (998e94ed, 2020-02-11)
- Relevant Inkscape Preferences: Display Units: "in"
- Operating System: Windows 7