cvs: gd /libgd gd.c

From: Date: Wed, 08 Aug 2007 18:16:44 +0000
Subject: cvs: gd /libgd gd.c
Groups: php.gd.cvs 
Request: Send a blank email to php-gd-cvs+get-261@lists.php.net to get a copy of this message
mattias Wed Aug 8 18:16:44 2007 UTC Modified files: /gd/libgd gd.c Log: - nc in gdImageFill sould not be less than 0 http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.64&r2=1.65&diff_format=u Index: gd/libgd/gd.c diff -u gd/libgd/gd.c:1.64 gd/libgd/gd.c:1.65 --- gd/libgd/gd.c:1.64 Wed Aug 8 12:57:18 2007 +++ gd/libgd/gd.c Wed Aug 8 18:16:44 2007 @@ -1,4 +1,4 @@ -/* $Id: gd.c,v 1.64 2007/08/08 12:57:18 mattias Exp $ */ +/* $Id: gd.c,v 1.65 2007/08/08 18:16:44 mattias Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -1911,7 +1911,7 @@ struct seg *stack; struct seg *sp; - if (!im->trueColor && nc > (im->colorsTotal - 1)) { + if (!im->trueColor && (nc >= 0) && (nc > (im->colorsTotal - 1))) { return; }

« previous php.gd.cvs (#261) next »