rasmus Wed Oct 16 18:34:45 2002 EDT
Modified files:
/php4/ext/gd/libgd gd_topal.c
Log:
Fix for bug #19941
Index: php4/ext/gd/libgd/gd_topal.c
diff -u php4/ext/gd/libgd/gd_topal.c:1.7 php4/ext/gd/libgd/gd_topal.c:1.8
--- php4/ext/gd/libgd/gd_topal.c:1.7 Sun Oct 6 13:47:50 2002
+++ php4/ext/gd/libgd/gd_topal.c Wed Oct 16 18:34:44 2002
@@ -1493,7 +1493,7 @@
my_cquantize_ptr cquantize = 0;
int i;
size_t arraysize;
- if (!im->trueColor)
+ if (!im->trueColor || colorsWanted <= 0)
{
/* Nothing to do! */
return;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php