Commit 69fa70cb authored by Thorsten Zachmann's avatar Thorsten Zachmann

o Fix: Bug 186292: Text shape has different stroke and fill in OpenOffice

  save draw:fill="none" if there is no background
  save draw:stroke="none" if there is no stroke

BUG: 186292


svn path=/trunk/koffice/; revision=937516
parent a4588987
......@@ -770,13 +770,20 @@ QString KoShape::saveStyle(KoGenStyle &style, KoShapeSavingContext &context) con
if (b) {
b->fillStyle(style, context);
}
else {
style.addProperty( "draw:stroke", "none" );
}
KoShapeShadow * s = shadow();
if (s)
s->fillStyle(style, context);
KoShapeBackground * bg = background();
if (bg)
if (bg) {
bg->fillStyle(style, context);
}
else {
style.addProperty( "draw:fill", "none" );
}
if (context.isSet(KoShapeSavingContext::AutoStyleInStyleXml)) {
style.setAutoStyleInStylesDotXml(true);
......
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