From: Ilia Alshanetsky Date: Wed, 14 Apr 2004 22:40:16 +0000 (+0000) Subject: Fixed bug #27995 (imagefilltoborder() stops the fill process prematurely). X-Git-Tag: php-4.3.7RC1~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6ea6cc87c2ef4f5b6b39f8dd7313d2d339f299a;p=php Fixed bug #27995 (imagefilltoborder() stops the fill process prematurely). # Already in PHP5 --- 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)) {