summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgpolynode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/source/svgreader/svgpolynode.cxx')
-rw-r--r--svgio/source/svgreader/svgpolynode.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgpolynode.cxx b/svgio/source/svgreader/svgpolynode.cxx
index efe1f74ae080..8cf572c3c7e8 100644
--- a/svgio/source/svgreader/svgpolynode.cxx
+++ b/svgio/source/svgreader/svgpolynode.cxx
@@ -52,8 +52,9 @@ namespace svgio
const SvgStyleAttributes* SvgPolyNode::getSvgStyleAttributes() const
{
- static rtl::OUString aClassStr(rtl::OUString::createFromAscii("poly"));
- maSvgStyleAttributes.checkForCssStyle(aClassStr);
+ static rtl::OUString aClassStrA(rtl::OUString::createFromAscii("polygon"));
+ static rtl::OUString aClassStrB(rtl::OUString::createFromAscii("polyline"));
+ maSvgStyleAttributes.checkForCssStyle(mbIsPolyline? aClassStrB : aClassStrA);
return &maSvgStyleAttributes;
}