[Libreoffice-commits] core.git: filter/source
Xisco Fauli
anistenis at gmail.com
Tue Nov 10 03:42:34 PST 2015
filter/source/svg/svgreader.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 47b25a727938051f226b8a7ff1ff5f0768fb53f2
Author: Xisco Fauli <anistenis at gmail.com>
Date: Mon Nov 9 16:11:10 2015 +0100
SVG: tdf#95510: stop-color and stop-opacity can be defined inside style too
Exemple:
<svg width="100%" height="100%" viewBox="0 0 800 400"
xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
</linearGradient>
</defs>
<ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" />
</svg>
Change-Id: I908e3d235b3e5ba0b7e4fe3666b6334e3c409d03
Reviewed-on: https://gerrit.libreoffice.org/19866
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index c19aa6e9..e30acf3 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -1042,6 +1042,12 @@ struct AnnotatingVisitor
case XML_TEXT_ANCHOR:
parseTextAlign(maCurrState,aValueUtf8.getStr());
break;
+ case XML_STOP_COLOR:
+ case XML_STOP_OPACITY:
+ parseGradientStop( maGradientStopVector.back(),
+ maGradientStopVector.size()-1,
+ nTokenId, sValue );
+ break;
case XML_TOKEN_INVALID:
SAL_INFO("svg", "unhandled token");
break;
More information about the Libreoffice-commits
mailing list