summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pdf/pdf.c2
1 files changed, 1 insertions, 1 deletions
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];