[Libreoffice-commits] core.git: svgio/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Thu Feb 18 15:22:20 UTC 2016
svgio/source/svgreader/svgstyleattributes.cxx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
New commits:
commit 423b79e7366203db3f57dea75b8cb9eb852b5614
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Sun Feb 14 18:32:22 2016 +0100
tdf#97752 SVGIO ignore not matching parent paints
fill attributes can have ONE of 3 kinds of paints:
* pain colour fills
* gradient fills
* pattern fills
if element has a fill we should not get fills of an other
kind from parent
Change-Id: I376a8fea4a7185b037a069a28191b7f37f6788bd
Signed-off-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Reviewed-on: https://gerrit.libreoffice.org/22273
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Xisco FaulĂ <anistenis at gmail.com>
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index bf4f057..a6ad68d 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1980,7 +1980,7 @@ namespace svgio
return &maFill.getBColor();
}
}
- else
+ else if (!mpSvgGradientNodeFill && !mpSvgPatternNodeFill)
{
const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle();
@@ -2010,7 +2010,7 @@ namespace svgio
return &maStroke.getBColor();
}
}
- else
+ else if (!mpSvgGradientNodeStroke && !mpSvgPatternNodeStroke)
{
const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle();
@@ -2045,7 +2045,7 @@ namespace svgio
{
return mpSvgGradientNodeFill;
}
- else
+ else if (!maFill.isSet() && !mpSvgPatternNodeFill)
{
const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle();
@@ -2068,7 +2068,7 @@ namespace svgio
{
return mpSvgGradientNodeStroke;
}
- else
+ else if (!maStroke.isSet() && !mpSvgPatternNodeStroke)
{
const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle();
@@ -2091,7 +2091,7 @@ namespace svgio
{
return mpSvgPatternNodeFill;
}
- else
+ else if (!maFill.isSet() && !mpSvgGradientNodeFill)
{
const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle();
@@ -2114,7 +2114,7 @@ namespace svgio
{
return mpSvgPatternNodeStroke;
}
- else
+ else if (!maStroke.isSet() && !mpSvgGradientNodeStroke)
{
const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle();
More information about the Libreoffice-commits
mailing list