[poppler] poppler/CairoOutputDev.cc

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Sat Oct 6 21:00:09 PDT 2007


 poppler/CairoOutputDev.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree 1627fbbde8be01af3bdd2583f3439897a37d5215 (from 3156d560c5eaf6970da422d0b09fd2e95bfe6d1d)
Author: Jeff Muizelaar <jeff at infidigm.net>
Date:   Sat Oct 6 23:27:40 2007 -0400

    Use maskWidth and maskHeight for reading from the mask image in CairoOutputDev::drawMaskedImage()
    
    Previously, drawMaskedImage() was incorrectly using the image width and height which is
    wrong when width != maskWidth or heigh != maskHeight. Fixes #12668.

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index a51b6b6..d2a57b6 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -1046,10 +1046,10 @@ void CairoOutputDev::drawMaskedImage(Gfx
   
   invert_bit = maskInvert ? 1 : 0;
 
-  for (y = 0; y < height; y++) {
+  for (y = 0; y < maskHeight; y++) {
     pix = maskImgStr->getLine();
     maskDest = maskBuffer + y * row_stride;
-    for (x = 0; x < width; x++) {
+    for (x = 0; x < maskWidth; x++) {
       if (pix[x] ^ invert_bit)
 	*maskDest++ = 0;
       else


More information about the poppler mailing list