summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-07-06 18:29:38 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-07-06 18:29:38 +0200
commitc65d19b8d0ba6f55aad2a0a286eb2cdf00d446c9 (patch)
tree0698023855e1fe1000f62337081b22147c7db7ad /writerperfect
parent0749b0fd1290738a5ea5faf0cd544a5365ec8067 (diff)
Some more ODG style mappings that LO understands and displays properly
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 2c7f7eecca78..5edb71ab4e4f 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1056,7 +1056,9 @@ 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))
+ 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"))
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "none");
else
{
@@ -1065,6 +1067,7 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
if (mxStyle["svg:stroke-color"])
pStyleGraphicsPropertiesElement->addAttribute("svg:stroke-color", mxStyle["svg:stroke-color"]->getStr());
+
if (mxStyle["svg:stroke-opacity"] && mxStyle["svg:stroke-opacity"]->getDouble() != 1.0)
pStyleGraphicsPropertiesElement->addAttribute("svg:stroke-opacity", mxStyle["svg:stroke-opacity"]->getStr());