- it has come clear that nc can be negative afterall

master
mattias 2007-08-08 19:51:06 +00:00
parent 7fc83cfdca
commit 8734260c30
1 changed files with 1 additions and 1 deletions

View File

@ -1911,7 +1911,7 @@ BGD_DECLARE(void) gdImageFill(gdImagePtr im, int x, int y, int nc)
struct seg *stack;
struct seg *sp;
if (!im->trueColor && ((nc < 0) || (nc > (im->colorsTotal - 1)))) {
if (!im->trueColor && nc > (im->colorsTotal - 1)) {
return;
}