Kaydet (Commit) 73ccf225 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Make draw:stroke==solid default for missing draw:stroke element

üst c4cedbc1
...@@ -1168,16 +1168,14 @@ void OdgGeneratorPrivate::_writeGraphicsStyle() ...@@ -1168,16 +1168,14 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
if (mxStyle["svg:stroke-linecap"]) if (mxStyle["svg:stroke-linecap"])
pStyleGraphicsPropertiesElement->addAttribute("svg:stoke-linecap", mxStyle["svg:stroke-linecap"]->getStr()); pStyleGraphicsPropertiesElement->addAttribute("svg:stoke-linecap", mxStyle["svg:stroke-linecap"]->getStr());
if(mxStyle["libwpg:stroke-solid"] && mxStyle["libwpg:stroke-solid"]->getInt()) if (mxStyle["draw:stroke"] && mxStyle["draw:stroke"]->getStr() == "dash")
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")
{ {
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "dash"); pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "dash");
sValue.sprintf("Dash_%i", miDashIndex-1); sValue.sprintf("Dash_%i", miDashIndex-1);
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke-dash", sValue); pStyleGraphicsPropertiesElement->addAttribute("draw:stroke-dash", sValue);
} }
else
pStyleGraphicsPropertiesElement->addAttribute("draw:stroke", "solid");
} }
if(mxStyle["draw:fill"] && mxStyle["draw:fill"]->getStr() == "none") if(mxStyle["draw:fill"] && mxStyle["draw:fill"]->getStr() == "none")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment