Clipping broken when exporting to xaml

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

Bug Description

When clipping a shape, nothing is visible in an xaml export.

To reproduce with Inkscape 0.92.2:
-Open the attached file clip.svg (two squares partially overlapping and clipped).
-Save as xaml (with or without Silverlight support, same effect).
-Open the file with IE.
-Nothing is drawn.
-When the same xaml file is re-imported into Inkscape, a shape is drawn but it does not look the same.

Revision history for this message
elecman (bitbarrelmedia) wrote :
jazzynico (jazzynico)
tags: added: exporting
removed: clip
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows 7, Inkscape 0.92.2 and Inkscape 0.92+devel (66c5d5def, 2017-11-26).

The XAML file looks good (with a rectangleGeometry element for the clip path), but doesn't open in IE or Kaxaml.

Changed in inkscape:
assignee: nobody → jazzynico (jazzynico)
milestone: none → 1.0
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :

The rectangleGeometry element requires relative coordinates, and we give it an absolute position. So the clipping object exists, but is not correctly set.

In your example, replacing:
      <RectangleGeometry xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="clipPath2183" Rect="33, -27, 115, 63 "/>
with:
      <RectangleGeometry xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Key="clipPath2183" Rect="108, 21, 115, 63"/>
fixes the issue.

But now we need to find an elegant way to fix it in the XSLT file.

Patrick Storz (ede123)
Changed in inkscape:
milestone: 1.0-old → 1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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