summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2015-06-25 10:58:10 +0000
committerJazzyNico <nicoduf@yahoo.fr>2015-06-25 10:58:10 +0000
commitebd4c060dc031ef78cabf02cac328534023a91c3 (patch)
treee24e8687fb2b1e23f8ba6db248d3f1a78ee50248
parentMerge node angle measurement by Alexander Brock (diff)
downloadinkscape-ebd4c060dc031ef78cabf02cac328534023a91c3.tar.gz
inkscape-ebd4c060dc031ef78cabf02cac328534023a91c3.zip
XAML. Fix for bug #1457891 (FillRule property values are case sensitive).
Fixed bugs: - https://launchpad.net/bugs/1457891 (bzr r14214)
-rwxr-xr-xshare/extensions/svg2xaml.xsl27
1 files changed, 15 insertions, 12 deletions
diff --git a/share/extensions/svg2xaml.xsl b/share/extensions/svg2xaml.xsl
index d2796c93c..c384b022f 100755
--- a/share/extensions/svg2xaml.xsl
+++ b/share/extensions/svg2xaml.xsl
@@ -1266,25 +1266,28 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt inkscape">
-->
<xsl:template mode="fill_rule" match="*">
<xsl:choose>
- <xsl:when test="@fill-rule and (@fill-rule = 'nonzero' or @fill-rule = 'evenodd')">
- <xsl:attribute name="FillRule">
- <xsl:value-of select="normalize-space(@fill-rule)" />
- </xsl:attribute>
+ <xsl:when test="@fill-rule and (@fill-rule = 'nonzero')">
+ <xsl:attribute name="FillRule">NonZero</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="@fill-rule and (@fill-rule = 'evenodd')">
+ <xsl:attribute name="FillRule">EvenOdd</xsl:attribute>
</xsl:when>
<xsl:when test="@style and contains(@style, 'fill-rule:')">
<xsl:variable name="FillRule" select="normalize-space(substring-after(@style, 'fill-rule:'))" />
<xsl:choose>
<xsl:when test="contains($FillRule, ';')">
- <xsl:if test="substring-before($FillRule, ';') = 'nonzero' or substring-before($FillRule, ';') = 'evenodd'">
- <xsl:attribute name="FillRule">
- <xsl:value-of select="substring-before($FillRule, ';')" />
- </xsl:attribute>
+ <xsl:if test="substring-before($FillRule, ';') = 'nonzero'">
+ <xsl:attribute name="FillRule">NonZero</xsl:attribute>
+ </xsl:if>
+ <xsl:if test="substring-before($FillRule, ';') = 'evenodd'">
+ <xsl:attribute name="FillRule">EvenOdd</xsl:attribute>
</xsl:if>
</xsl:when>
- <xsl:when test="$FillRule = 'nonzero' or $FillRule = 'evenodd'">
- <xsl:attribute name="FillRule">
- <xsl:value-of select="$FillRule" />
- </xsl:attribute>
+ <xsl:when test="$FillRule = 'nonzero'">
+ <xsl:attribute name="FillRule">NonZero</xsl:attribute>
+ </xsl:when>
+ <xsl:when test="$FillRule = 'evenodd'">
+ <xsl:attribute name="FillRule">EvenOdd</xsl:attribute>
</xsl:when>
</xsl:choose>
</xsl:when>