diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-07-06 18:29:38 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-07-06 18:29:38 +0200 |
commit | 4d564758097fee84cb531b6f6b754c5724b24587 (patch) | |
tree | 2cc721fd22020057aa21bf117c0c41db5925ac7c | |
parent | 7b36682b5e6cb6a68b112baa54f95bebd99b0d0b (diff) |
Some more ODG style mappings that LO understands and displays properly
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 2c7f7eecc..5edb71ab4 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()); |