diff options
author | Xisco Fauli <anistenis@gmail.com> | 2015-11-10 00:24:41 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2015-11-11 09:17:23 +0000 |
commit | e44119c5803a807ce414d45fa060e329db1856e2 (patch) | |
tree | 91832d7b4fd7c8d3666463108740238f5d53382e /filter | |
parent | 5af873303aeb056dddf5604fc7d9054e470dc94c (diff) |
SVG: tdf#95714 stop-color can be defined once too
Change-Id: I8a660281a255d28981e23d3cf30ff6c337f0424d
Reviewed-on: https://gerrit.libreoffice.org/19876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgreader.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index 04d8e01606e5..4dfc072428eb 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -513,8 +513,12 @@ struct AnnotatingVisitor return true; // cannot write style, svm import case // do we have a gradient fill? then write out gradient as well - if( rState.meFillType == GRADIENT && rState.maFillGradient.maStops.size() > 1 ) + if( rState.meFillType == GRADIENT && rState.maFillGradient.maStops.size() > 0 ) { + // if only one stop-color is defined + if( rState.maFillGradient.maStops.size() == 1 ) + rState.maFillGradient.maStops.push_back(rState.maFillGradient.maStops[0]); + // TODO(F3): ODF12 supposedly also groks svg:linear/radialGradient. But CL says: nope. xAttrs->AddAttribute( "draw:name", getStyleName("svggradient", rState.maFillGradient.mnId) ); if( rState.maFillGradient.meType == Gradient::LINEAR ) |