Code

"fix" gradients; things need to be resolved on the Cairo side, of course
authormental <mental@users.sourceforge.net>
Fri, 10 Nov 2006 03:26:36 +0000 (03:26 +0000)
committermental <mental@users.sourceforge.net>
Fri, 10 Nov 2006 03:26:36 +0000 (03:26 +0000)
src/extension/internal/pdf-cairo.cpp

index 2b7fd1381bfb73e0101953e717fc8a8485207a78..0b500864d14c189b1a9bab81a4b0adcac55adae5 100644 (file)
@@ -497,12 +497,12 @@ PrintCairoPDF::create_pattern_for_paint(SPPaintServer const *const paintserver,
                        case SP_GRADIENT_SPREAD_REPEAT:
                                cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REPEAT);
                                break;
-                       case SP_GRADIENT_SPREAD_REFLECT:        // not supported by cairo-pdf yet
-                               //cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REFLECT);
-                               //break;
+                       case SP_GRADIENT_SPREAD_REFLECT:
+                               cairo_pattern_set_extend(pattern, CAIRO_EXTEND_REFLECT);
+                               break;
                        case SP_GRADIENT_SPREAD_PAD:
             default:
-                               cairo_pattern_set_extend(pattern, CAIRO_EXTEND_NONE);   // PAD not supported by cairo-pdf yet
+                               cairo_pattern_set_extend(pattern, CAIRO_EXTEND_PAD);
                                break;
                }