summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2011-03-31 15:56:07 +0000
committerJazzyNico <nicoduf@yahoo.fr>2011-03-31 15:56:07 +0000
commite84be5897be9a0019555ba4ccc90a759014c92d6 (patch)
tree5ec2d558064599bfe6fb6dc38082e7a9c978fce3
parentemf import. limited support for EMR_BITBLT (Bug 382421) (diff)
downloadinkscape-e84be5897be9a0019555ba4ccc90a759014c92d6.tar.gz
inkscape-e84be5897be9a0019555ba4ccc90a759014c92d6.zip
Export. XAML export gradient fix (Bug #746290, SVG to XAML fails creating valid doubles on German Windows 7 / 64)
Fixed bugs: - https://launchpad.net/bugs/746290 (bzr r10137)
-rwxr-xr-xshare/extensions/svg2xaml.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/extensions/svg2xaml.xsl b/share/extensions/svg2xaml.xsl
index aabfffbd0..32f869da1 100755
--- a/share/extensions/svg2xaml.xsl
+++ b/share/extensions/svg2xaml.xsl
@@ -587,7 +587,7 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="StartPoint">
- <xsl:value-of select="concat((@x1 - $left), ',', (@y1 - $top))" />
+ <xsl:value-of select="concat(round((@x1 - $left)), ',', round((@y1 - $top)))" />
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
@@ -599,7 +599,7 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt">
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="EndPoint">
- <xsl:value-of select="concat((@x2 - $left), ',', (@y2 - $top))" />
+ <xsl:value-of select="concat(round((@x2 - $left)), ',', round((@y2 - $top)))" />
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>