summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgstyleattributes.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/source/svgreader/svgstyleattributes.cxx')
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 9c247532125b..cece3967efdc 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -208,7 +208,7 @@ namespace svgio
return getCssStyleParent();
}
- if(mrOwner.getParent())
+ if(mrOwner.supportsParentStyle() && mrOwner.getParent())
{
return mrOwner.getParent()->getSvgStyleAttributes();
}