[poppler] poppler/Gfx.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Feb 24 11:08:34 PST 2010


 poppler/Gfx.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 8e354a15a1861719c00799937ad9f9bb1bb71e9f
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date:   Wed Feb 24 18:58:11 2010 +0000

    Fix remaining part of 26243
    
    Thomas says: The "gn" is colored with a shading pattern, but the shading has a bbox,
    so it is clipped to this bbox, too. But when coloring text or masks in
    pattern colorspace, this is definely wrong.

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 9000237..85d657b 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -2101,7 +2101,8 @@ void Gfx::doShadingPatternFill(GfxShadingPattern *sPat,
     state->lineTo(xMin, yMax);
     state->closePath();
     state->clip();
-    out->clip(state);
+    if (!textHaveCSPattern && !maskHaveCSPattern)
+      out->clip(state);
     state->setPath(savedPath->copy());
   }
 


More information about the poppler mailing list