inkex.py: support arbitrary (but uniform) document scale (0.92)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
Follow-up to:
Bug #1474188 inkex.py: avoid ZeroDivisionError in getDocumentUnit()
Steps to reproduce:
1) create a drawing with Inkscape 0.91 (default template of 0.91)
(e.g. prepare a simple path, and a quadrilateral for perspective, save)
2) verify that 'Extensions > Modify Path > Perspective' works as expected
--> ok
3) open drawing created with 0.91 in current trunk
3) verify that 'Extensions > Modify Path > Perspective' produces the same result
--> fails (drawing scale is wrong)
Todo:
1) support arbitrary (but uniform) document scale;
don't fall back to CSS px in self.getDocumen
2) verify support in extensions which currently assume a fixed scale of "self.unittouu(
Related branches
Changed in inkscape: | |
assignee: | jazzynico (jazzynico) → nobody |
milestone: | 0.92 → none |
A possible fix could be similar to the attached diff (just a quick test without checking for any unintended side-effects). I'll work in a branch and update the report later.