summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorJoren De Cuyper <jorendc@libreoffice.org>2014-07-14 17:57:06 +0200
committerTomaž Vajngerl <quikee@gmail.com>2014-07-15 14:31:37 +0000
commiteae269a60a0a571c4752a4b2a94ba728bb41c460 (patch)
tree8b84d3eda0c223f0a110b8fcd9ba943eac482c4c /svgio
parentc0a7a7e499c07627b15072aeb627fcb4897ea4d6 (diff)
fdo#78554 - SVG: Text from SVG no longer displayed in LibreOffice
regression of 3b7472b284131c09d91b69f26d5d26d54648f939 Change-Id: I95a30acbf4b2684dda9684f5b51b887356a940e1 Reviewed-on: https://gerrit.libreoffice.org/10303 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgsvgnode.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgsvgnode.cxx b/svgio/source/svgreader/svgsvgnode.cxx
index 50dbef752131..73a5efbdda9e 100644
--- a/svgio/source/svgreader/svgsvgnode.cxx
+++ b/svgio/source/svgreader/svgsvgnode.cxx
@@ -58,8 +58,13 @@ namespace svgio
const SvgStyleAttributes* SvgSvgNode::getSvgStyleAttributes() const
{
- checkForCssStyle(OUString("svg"), maSvgStyleAttributes);
- return maSvgStyleAttributes.getCssStyleParent();
+ const SvgStyleAttributes* aCheckCssStyle = checkForCssStyle(OUString("svg"), maSvgStyleAttributes);
+ const SvgStyleAttributes* aGetCssStyleParent = maSvgStyleAttributes.getCssStyleParent();
+
+ if (aGetCssStyleParent == NULL)
+ return aCheckCssStyle;
+
+ return aGetCssStyleParent;
}
void SvgSvgNode::parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent)