Kaydet (Commit) f6df52aa authored tarafından Joren De Cuyper's avatar Joren De Cuyper Kaydeden (comit) Tomaž Vajngerl

fdo#78554 - SVG: Text from SVG no longer displayed in LibreOffice

regression of 3b7472b2

Change-Id: I95a30acbf4b2684dda9684f5b51b887356a940e1
Reviewed-on: https://gerrit.libreoffice.org/10302Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
Tested-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst 37c3cf70
...@@ -58,8 +58,13 @@ namespace svgio ...@@ -58,8 +58,13 @@ namespace svgio
const SvgStyleAttributes* SvgSvgNode::getSvgStyleAttributes() const const SvgStyleAttributes* SvgSvgNode::getSvgStyleAttributes() const
{ {
checkForCssStyle(OUString("svg"), maSvgStyleAttributes); const SvgStyleAttributes* aCheckCssStyle = checkForCssStyle(OUString("svg"), maSvgStyleAttributes);
return maSvgStyleAttributes.getCssStyleParent(); const SvgStyleAttributes* aGetCssStyleParent = maSvgStyleAttributes.getCssStyleParent();
if (aGetCssStyleParent == NULL)
return aCheckCssStyle;
return aGetCssStyleParent;
} }
void SvgSvgNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) void SvgSvgNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment