summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-10-04 11:00:40 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-10-04 16:45:58 +0200
commitc4cedbc155bb1b561e8cd084a598b3d1e275832f (patch)
tree99c1048a38ea80752e20eefaa7f9e2aa4daad55e /writerperfect
parent1e085b43c14c8c67f3c46905eb1a8a528b900e59 (diff)
Allow hairlines svg:stroke-width==0 and handle special cases in the libraries themselves
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 602e6b7d901b..478d64edce40 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1149,9 +1149,7 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
TagOpenElement *pStyleGraphicsPropertiesElement = new TagOpenElement("style:graphic-properties");
- if((mxStyle["draw:stroke"] && mxStyle["draw:stroke"]->getStr() == "none") ||
- (mxStyle["svg:stroke-width"] && mxStyle["svg:stroke-width"]->getDouble() == 0.0) ||
- (mxStyle["svg:stroke-color"] && mxStyle["svg:stroke-color"]->getStr() == "none"))
+ if (mxStyle["draw:stroke"] && mxStyle["draw:stroke"]->getStr() == "none")
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "none");
else
{