Code

fix 1679477
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 16 Mar 2007 20:56:59 +0000 (20:56 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 16 Mar 2007 20:56:59 +0000 (20:56 +0000)
src/extension/internal/odf.cpp

index 3ce44ee84281388575e10d5f4eb47c7e247d1984..a19d03a31ae43fd4b924542481c440c683d72518 100644 (file)
@@ -1658,6 +1658,9 @@ bool OdfOutput::processGradient(Writer &outs, SPItem *item,
     if (!style)
         return false;
 
+    if (style->fill.type != SP_PAINT_TYPE_PAINTSERVER)
+        return false;
+
     //## Gradient.  Look in writeStyle() below to see what info
     //   we need to read into GradientInfo.
     if (!SP_IS_GRADIENT(SP_STYLE_FILL_SERVER(style)))