summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgpolynode.cxx
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2012-01-10 13:59:16 +0000
committerArmin Le Grand <alg@apache.org>2012-01-10 13:59:16 +0000
commitca69b789a3e7b693b9d1d3ee5f3235a0be59834a (patch)
tree30ec6873aa87cba9f5bbcc4384277eb2a4bcc177 /svgio/source/svgreader/svgpolynode.cxx
parentd1b5144a3df73572ec5a613db03358429cb04d22 (diff)
#118737# Support multiple styles in a css/style statement, use the right identifiers for polygon and polynode
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;
}