summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-10-04 11:02:46 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-10-04 16:45:59 +0200
commit73ccf2254adaa6f78a41f625df20d56c6cdc8d02 (patch)
treeaf95486518bf40dbe144c9de5a24bc73986c1974 /writerperfect
parentc4cedbc155bb1b561e8cd084a598b3d1e275832f (diff)
Make draw:stroke==solid default for missing draw:stroke element
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 478d64edce40..a848b3574faf 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1168,16 +1168,14 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
if (mxStyle["svg:stroke-linecap"])
pStyleGraphicsPropertiesElement->addAttribute("svg:stoke-linecap", mxStyle["svg:stroke-linecap"]->getStr());
- if(mxStyle["libwpg:stroke-solid"] && mxStyle["libwpg:stroke-solid"]->getInt())
- pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "solid");
- else if (mxStyle["draw:stroke"] && mxStyle["draw:stroke"]->getStr() == "solid")
- pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "solid");
- else if (mxStyle["draw:stroke"] && mxStyle["draw:stroke"]->getStr() == "dash")
+ if (mxStyle["draw:stroke"] && mxStyle["draw:stroke"]->getStr() == "dash")
{
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "dash");
sValue.sprintf("Dash_%i", miDashIndex-1);
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke-dash", sValue);
}
+ else
+ pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "solid");
}
if(mxStyle["draw:fill"] && mxStyle["draw:fill"]->getStr() == "none")