trunk: incorrect page size for XAML file (rev >= 12554)

Bug #1235809 reported by su_v
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

Steps to reproduce:
1) Download and open attached sample XAML file in current trunk
2) zoom to page
3) zoom to content

Expected result:
Drawing content is inside the page area.

Actual result:
Page size is 1x1 px, the drawing content is outside the page area, and seems to use the correct scale (zoom 1:1) compared with how it renders in earlier builds.

Tested with Inkscape 0.48+devel r12662 on OS X 10.7.5.

Testing with archived builds:
- not reproduced with revision <= 12552
- reproduced with revision >= 12554

Related commit: merge of GSoC 2013 unit-improvement:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12554>

Sample XAML file also available here:
<http://sourceforge.net/p/inkscape/code/HEAD/tree/inkscape_testfiles/trunk/>

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

Attaching SVG version of the XAML file as imported/saved with Inkscape 0.48.4: it shows the same incorrect page size when opened in trunk.

XAML input extension:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/share/extensions/xaml2svg.xsl>

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

@Matthew - maybe you could take a closer look? The problem seems to be top-level <svg> with width=height=100%, no viewBox, and nested <svg> elements for the drawing content…

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape trunk revision 12667.

Changed in inkscape:
status: New → Triaged
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
Matthew Petroff (matthewpetroff) wrote :

While this is a change in behavior, I'm not sure I'd consider it a regression. As the XAML files don't specify a page size, a default page size is used. Previously, this was A4; now it's 1px by 1px. Neither is ideal. The page should be sized to the drawing, but I have no idea how one would do this with an XSL transformation.

Revision history for this message
su_v (suv-lp) wrote :
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91 → 0.92
Revision history for this message
su_v (suv-lp) wrote :

Probably no longer (or only partially) reproduces with rev >= 14648 (for bug #1544016) - haven't retested and compared it to the import of 0.48.5 though.

Revision history for this message
jazzynico (jazzynico) wrote :

Apparently not fixed. Reproduced again on Windows XP with trunk rev. 14920.

Revision history for this message
jazzynico (jazzynico) wrote :

Lowering importance (easy workaround: resize canvas to content with Shift+Ctrl+R).

Changed in inkscape:
importance: Medium → Low
milestone: 0.92 → 0.93
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.