diff options
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index f3446107ab55..b60d84b4077b 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -1954,8 +1954,20 @@ namespace svgio const basegfx::BColor* SvgStyleAttributes::getFill() const { - if(mbIsClipPathContent || ((SVGTokenMarker == mrOwner.getType()) && !maFill.isSet())) + if(mbIsClipPathContent) + { + static basegfx::BColor aBlack(0.0, 0.0, 0.0); + return &aBlack; + } + else if((SVGTokenMarker == mrOwner.getType()) && !maFill.isSet()) { + const SvgStyleAttributes* pSvgStyleAttributes = getParentStyle(); + + if(pSvgStyleAttributes) + { + return pSvgStyleAttributes->getFill(); + } + static basegfx::BColor aBlack(0.0, 0.0, 0.0); return &aBlack; } |