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

New commits:
commit 0dae2294cf8a2f312d8e6504be4e1be516b34b1b
Author: Thomas Freitag <[email protected]>
Date:   Tue Feb 9 21:44:07 2010 +0000

    Fix regression in painting. Fixes bug 26243

diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc
index 9b6e96b..bc194af 100644
--- a/poppler/Gfx.cc
+++ b/poppler/Gfx.cc
@@ -28,7 +28,7 @@
 // Copyright (C) 2008 Michael Vrable <[email protected]>
 // Copyright (C) 2008 Hib Eris <[email protected]>
 // Copyright (C) 2009 M Joonas Pihlaja <[email protected]>
-// Copyright (C) 2009 Thomas Freitag <[email protected]>
+// Copyright (C) 2009, 2010 Thomas Freitag <[email protected]>
 // Copyright (C) 2009 William Bader <[email protected]>
 // Copyright (C) 2009, 2010 David Benjamin <[email protected]>
 //
@@ -1426,6 +1426,13 @@ void Gfx::opSetFillColorSpace(Object args[], int 
numArgs) {
     out->updateFillColor(state);
     if (drawText) {
       if (colorSpace->getMode() == csPattern) {
+        if (out->supportTextCSPattern(state) && textHaveCSPattern) {
+          GBool needFill = out->deviceHasTextClip(state);
+          out->endTextObject(state);
+          if (needFill)
+            doPatternFill(gTrue);
+          out->restoreState(state);
+        }
         colorSpaceText = NULL;
         textHaveCSPattern = gTrue;
         out->beginTextObject(state);
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to