From: mental Date: Fri, 10 Nov 2006 03:26:36 +0000 (+0000) Subject: "fix" gradients; things need to be resolved on the Cairo side, of course X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=edb3b49cf057cfb6e68eb97b4ea6a006862da5df;p=inkscape.git "fix" gradients; things need to be resolved on the Cairo side, of course --- diff --git a/src/extension/internal/pdf-cairo.cpp b/src/extension/internal/pdf-cairo.cpp index 2b7fd1381..0b500864d 100644 --- a/src/extension/internal/pdf-cairo.cpp +++ b/src/extension/internal/pdf-cairo.cpp @@ -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; }