[poppler] poppler/SplashOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Dec 9 12:01:03 PST 2012


 poppler/SplashOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f1b2e29e1d5f420903085318f06c4dc83ebb24f3
Author: Thomas Freitag <Thomas.Freitag at alfa.de>
Date:   Sun Dec 9 20:59:26 2012 +0100

    Fix crash when rendering on mono1

diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 3687676..6f2d4d6 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -4190,7 +4190,7 @@ GBool SplashOutputDev::tilingPatternFill(GfxState *state, Gfx *gfx1, Catalog *ca
   m1.m[4] = -kx;
   m1.m[5] = -ky;
 
-  bitmap = new SplashBitmap(surface_width, surface_height, colorMode != splashModeMono1,
+  bitmap = new SplashBitmap(surface_width, surface_height, 1,
                             (paintType == 1) ? colorMode : splashModeMono8, gTrue);
   memset(bitmap->getAlphaPtr(), 0, bitmap->getWidth() * bitmap->getHeight());
   if (paintType == 2) {


More information about the poppler mailing list