Code

Require a pageBox in the constructor for GfxState so that we do not always need to...
[inkscape.git] / 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;
                }