summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-09-26 11:46:08 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-09-27 17:05:31 +0200
commit0f829ec191c944a12c63646dfc3b78f0def26c91 (patch)
treeed9cb69028cf93c957a7470fb9c132d8f3cb25ab /writerperfect
parent516d2e05183770d93037b388a2af4928d90bf83a (diff)
If gradient type is not specified, assume linear
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 9b12cbc26536..47b6c893813a 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -1020,6 +1020,11 @@ void OdgGeneratorPrivate::_writeGraphicsStyle()
pDrawGradientElement->addAttribute("draw:style", mxStyle["draw:style"]->getStr());
pDrawOpacityElement->addAttribute("draw:style", mxStyle["draw:style"]->getStr());
}
+ else
+ {
+ pDrawGradientElement->addAttribute("draw:style", "linear");
+ pDrawOpacityElement->addAttribute("draw:style", "linear");
+ }
WPXString sValue;
sValue.sprintf("Gradient_%i", miGradientIndex);
pDrawGradientElement->addAttribute("draw:name", sValue);