Clipping grouped objects not exported to xaml

Bug #1423216 reported by elecman on 2015-02-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
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

su_v (suv-lp) on 2015-02-18
tags: added: exporting xaml
jazzynico (jazzynico) on 2015-02-23
Changed in inkscape:
status: New → Triaged
assignee: nobody → jazzynico (jazzynico)
milestone: none → 0.92
jazzynico (jazzynico) on 2015-02-26
Changed in inkscape:
importance: Undecided → Medium
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
jazzynico (jazzynico) wrote :
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
elecman (bitbarrelmedia) wrote :

Tested, and it works fine.

Thanks for the update :-)

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) on 2017-01-22
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  Edit
Everyone can see this information.

Other bug subscribers