From c4cedbc155bb1b561e8cd084a598b3d1e275832f Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Tue, 4 Oct 2011 11:00:40 +0200 Subject: Allow hairlines svg:stroke-width==0 and handle special cases in the libraries themselves --- writerperfect/source/filter/OdgGenerator.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'writerperfect') 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 { -- cgit