diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2013-11-03 08:40:56 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2013-11-03 08:40:56 +0000 |
| commit | aa87d084573a2e8e7c6684a625c90530914fb565 (patch) | |
| tree | 60cbe4687e0eaeeb7738898e66a642d663d18cbe | |
| parent | more conversions from radians to degrees for arcs (Bug 1239462) (diff) | |
| download | inkscape-aa87d084573a2e8e7c6684a625c90530914fb565.tar.gz inkscape-aa87d084573a2e8e7c6684a625c90530914fb565.zip | |
Fix for Bug #1243394 (XAML exporter doesn't remove unnecessary filters attributes)
Fixed bugs:
- https://launchpad.net/bugs/1243394
(bzr r12764)
| -rwxr-xr-x | share/extensions/svg2xaml.xsl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/share/extensions/svg2xaml.xsl b/share/extensions/svg2xaml.xsl index 37096a4d3..7536c9e0e 100755 --- a/share/extensions/svg2xaml.xsl +++ b/share/extensions/svg2xaml.xsl @@ -480,6 +480,22 @@ exclude-result-prefixes="rdf xlink xs exsl libxslt"> </xsl:template> <!-- + // Fake GaussianBlur filter effect // + Replaces all the other SVG effects with a zero radius blur effect. +--> +<xsl:template mode="forward" match="*[name(.) = 'feBlend' or name(.) = 'feColorMatrix' or name(.) = 'feComponentTransfer' or name(.) = 'feComposite' or name(.) = 'feConvolveMatrix' or name(.) = 'feDiffuseLighting' or name(.) = 'feDisplacementMap' or name(.) = 'feFlood' or name(.) = 'feImage' or name(.) = 'feMerge' or name(.) = 'feMorphology' or name(.) = 'feOffset' or name(.) = 'feSpecularLighting' or name(.) = 'feTile' or name(.) = 'feTurbulence']"> + <xsl:comment> + <xsl:value-of select="concat('Tag ', name(.), ' not supported, replaced with empty blur')" /> + </xsl:comment> + <BlurEffect> + <xsl:if test="../@id"><xsl:attribute name="x:Key"><xsl:value-of select="../@id" /></xsl:attribute></xsl:if> + <xsl:attribute name="Radius"> + <xsl:value-of select="0" /> + </xsl:attribute> + </BlurEffect> +</xsl:template> + +<!-- // Linked filter effect // Only supports blurs --> |
