From: Ilia Alshanetsky Date: Thu, 16 Jan 2003 21:18:59 +0000 (+0000) Subject: MFH X-Git-Tag: PHP_4_3_before_13561_fix~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ed8d327b8df6240be3384e267442bd660225396;p=php MFH --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index ceb63407cf..569bd49a4e 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -1979,7 +1979,7 @@ PHP_FUNCTION(pdf_open_memory_image) } else { #endif if (im->pixels && gdImageBoundsSafe(im, j, i)) { - color = im->pixels[im->sy][im->sx]; + color = im->pixels[i][j]; *ptr++ = im->red[color]; *ptr++ = im->green[color]; *ptr++ = im->blue[color];