Clipping grouped objects not exported to xaml

Bug #1423216 reported by elecman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
jazzynico

Bug Description

When objects are grouped and the whole group is clipped by a single square, no clipping information is present when exported to xaml.

To reproduce:
-Start inkscape.
-Draw 3 yellow squares using the rectangle tool.
-Group all 3 shapes together.
-Draw a 4th square partially on top of the other squares.
-Put the 4th square on top of the z order.
-Select all 5 squares.
-Go to Object->Clip->Set.
-Save a copy as xaml.
-Open the xaml file.
-Note that there is a clipPath present, but this is not used anywhere.

The xaml spec supports clipping of groups using this format:
<Canvas Name="g4217" Clip="{StaticResource clipPath4225}" >

Inkscape: v0.91
OS: Win 7

Tags: exporting xaml
su_v (suv-lp)
tags: added: exporting xaml
jazzynico (jazzynico)
Changed in inkscape:
status: New → Triaged
assignee: nobody → jazzynico (jazzynico)
milestone: none → 0.92
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
jazzynico (jazzynico) wrote :

Activating line 83 (currently commented out) seems to fix the issue. See http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/share/extensions/svg2xaml.xsl#L83. At least with the attached test file.

For what I understand, the template call was commented a long time ago, when the clip feature was not completely implemented.
Test for regressions required...

Changed in inkscape:
status: Triaged → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Fixed in the trunk, revision 13967.

@elecman - You can test the new version by replacing your svg2xaml.xsl file (in the share/extensions folder) with the one available in the trunk (https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/share/extensions/svg2xaml.xsl).

Changed in inkscape:
status: In Progress → Fix Committed
tags: added: backport-proposed
Revision history for this message
elecman (bitbarrelmedia) wrote :

Tested, and it works fine.

Thanks for the update :-)

Revision history for this message
ScislaC (scislac) wrote :

trunk r13967 backported in 0.91.x r13756

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.