From edb3b49cf057cfb6e68eb97b4ea6a006862da5df Mon Sep 17 00:00:00 2001 From: mental Date: Fri, 10 Nov 2006 03:26:36 +0000 Subject: [PATCH] "fix" gradients; things need to be resolved on the Cairo side, of course --- src/extension/internal/pdf-cairo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.30.2