[poppler] poppler/CairoOutputDev.cc
Adrian Johnson
ajohnson at kemper.freedesktop.org
Mon Apr 2 03:46:29 PDT 2012
poppler/CairoOutputDev.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 4e940b14a6fddde9a1714976ff8045e26cbf7d40
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Mon Apr 2 20:03:11 2012 +0930
cairo: fix regression caused by mesh gradients
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index c021e4c..22fdaca 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -454,7 +454,8 @@ void CairoOutputDev::updateFillColor(GfxState *state) {
GfxRGB color = fill_color;
state->getFillRGB(&fill_color);
- if (color.r != fill_color.r ||
+ if (cairo_pattern_get_type (fill_pattern) != CAIRO_PATTERN_TYPE_SOLID ||
+ color.r != fill_color.r ||
color.g != fill_color.g ||
color.b != fill_color.b)
{
@@ -473,7 +474,8 @@ void CairoOutputDev::updateStrokeColor(GfxState *state) {
GfxRGB color = stroke_color;
state->getStrokeRGB(&stroke_color);
- if (color.r != stroke_color.r ||
+ if (cairo_pattern_get_type (fill_pattern) != CAIRO_PATTERN_TYPE_SOLID ||
+ color.r != stroke_color.r ||
color.g != stroke_color.g ||
color.b != stroke_color.b)
{
More information about the poppler
mailing list