From a6ea6cc87c2ef4f5b6b39f8dd7313d2d339f299a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 14 Apr 2004 22:40:16 +0000 Subject: [PATCH] Fixed bug #27995 (imagefilltoborder() stops the fill process prematurely). # Already in PHP5 --- NEWS | 4 ++++ ext/gd/libgd/gd.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 281f65c665..61ec7cebfe 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +?? ??? 2004, Version 4.3.7 +- Fixed bug #27995 (imagefilltoborder() stops the fill process prematurely). + (Ilia) + 15 Apr 2004, Version 4.3.6 - Updated bundled PDFLib library to version 5.0.3p1 in Windows distribution. (Edin) diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 2d946265ea..fbf8e69881 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -1823,7 +1823,7 @@ void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) if (y < ((im->sy) - 1)) { lastBorder = 1; for (i = leftLimit; i <= rightLimit; i++) { - int c = gdImageGetTrueColorPixel(im, i, y + 1); + int c = gdImageGetPixel(im, i, y + 1); if (lastBorder) { if ((c != border) && (c != color)) { -- 2.50.1