]> granicus.if.org Git - php/commitdiff
Fixed bug #27995 (imagefilltoborder() stops the fill process prematurely).
authorIlia Alshanetsky <iliaa@php.net>
Wed, 14 Apr 2004 22:40:16 +0000 (22:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 14 Apr 2004 22:40:16 +0000 (22:40 +0000)
# Already in PHP5

NEWS
ext/gd/libgd/gd.c

diff --git a/NEWS b/NEWS
index 281f65c6656e4f74df300dee62df49c4eb617792..61ec7cebfe6a2071414acdf5141623bd1c8560c3 100644 (file)
--- 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)
index 2d946265ea8438135b5eee632c9566efc8ba409b..fbf8e69881fec21144aff63fe3c4e22bba813f2e 100644 (file)
@@ -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)) {