[Libreoffice-commits] .: writerperfect/source

Fridrich Strba fridrich at kemper.freedesktop.org
Tue Sep 27 08:05:35 PDT 2011


 writerperfect/source/filter/OdgGenerator.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 0f829ec191c944a12c63646dfc3b78f0def26c91
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Mon Sep 26 11:46:08 2011 +0200

    If gradient type is not specified, assume linear

diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 9b12cbc..47b6c89 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);


More information about the Libreoffice-commits mailing list