"resize page to selection" broken in 0.91 with width="100%", height="100%"

Bug #1419122 reported by AD
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Alvin Penner

Bug Description

I was working on a drawing in inkscape 0.48 that i originally downloaded from the internet and converted using illustrator.

When i opened the drawing in 0.91 and chose to "Resize page to drawing" from the Document Properties window, the page becomes HUGE and my drawing disappears. I double-checked and it still works fine in 0.48.

I attached said file with this report.

I use inkscape on windows 7

Steps to reproduce:
- open the attached file
- hit ctrl+shift+d
- expand "Resize page to content..."
- click "Resize page to drawing or selection"

Revision history for this message
AD (dyf) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.91r13725 and 0.91+devel r13904 on OS X 10.7.5

Based on tests with archived builds:
- not reproduced with rev <= 13714,
- reproduced with rev >= 13715
the regression is related to the changes in
 Revision 13715: use 'root->height.unit' instead of namedview 'units'.
 https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13715
which was part of the fix for
 Bug #1310787 “resize page to drawing resets unit to px (rev >= 12554).”
 https://bugs.launchpad.net/inkscape/+bug/1310787
and was backported to 0.91.x in
 https://bazaar.launchpad.net/~inkscape.dev/inkscape/RELEASE_0_91_BRANCH/revision/13663

The bug does not reproduce if <svg> width and height are set to absolute values (e.g. by copying the uu values from the viewbox).

summary: - "resize page to selection" broken in 0.91
+ "resize page to selection" broken in 0.91 with width="100%",
+ height="100%"
tags: added: regression transformations units
Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.92
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

thanks for the heads-up.
for the special case of page size in %, the behavior has been restored back to the original behavior before rev 13715. Other page size units will not be affected by this change.

fix committed to rev 13912

Changed in inkscape:
status: Confirmed → Fix Committed
assignee: nobody → Alvin Penner (apenner)
su_v (suv-lp)
tags: added: backport-proposed
Revision history for this message
ScislaC (scislac) wrote :

remaining hunks of trunk r13912 backported in 0.91.x r13764 (a couple hunks were backported in a previous backport as they were needed)

Changed in inkscape:
milestone: 0.92 → 0.91.1
tags: removed: backport-proposed
jazzynico (jazzynico)
Changed in inkscape:
milestone: 0.91.1 → 0.92
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.