]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 17 Jun 2012 20:07:34 +0000 (20:07 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 17 Jun 2012 20:07:34 +0000 (20:07 +0000)
coders/pdf.c

index 075a355ad0dcba4e6d168e39bffeabd1b19d9059..8fbd486d84227b4d6fd2954e27500a890023ef03 100644 (file)
@@ -2257,7 +2257,7 @@ static MagickBooleanType WritePDFImage(const ImageInfo *image_info,Image *image,
                 for (x=0; x < (ssize_t) tile_image->columns; x++)
                 {
                   *q++=(unsigned char) GetPixelIndex(tile_image,p);
-                  q+=GetPixelChannels(image);
+                  p+=GetPixelChannels(tile_image);
                 }
               }
 #if defined(MAGICKCORE_ZLIB_DELEGATE)