unexpected results when changing document units on a loaded svg file that already has a viewBox defined
Bug #1280684 reported by
Alvin Penner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Unassigned |
Bug Description
- Windows XP, Inkscape rev 12991
- attached is an svg file from Bug 803791
- it has the following properties
width="2500"
height=
viewBox="-75 -50 465.04091 170.99168"
default document units = px
Related branches
tags: | added: regression units viewbox |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
- upon changing the document units from px to mm one would normally expect the reported size of all objects to change by a factor of 25.4/90 = .2822222, so the size of the document would change from
(2500 x 1437.5) px to (705.5 x 405.7) mm
Instead, when the document units are changed to mm, one gets the file Wrongpaths_mm.svg.
The size of the black rectangle which represents the original document, is now reported as being 131.245 mm by 75.466 mm. (This is coming from the W: and H: spinboxes on the top menu after pushing F1.) This is much smaller than expected. These numbers are somewhat consistent with taking the viewBox width and scaling it by .2822222 but that is not what was expected.