cvs: php4 /ext/gd/libgd gd_topal.c
| From: | Rasmus Lerdorf | Date: | Wed, 16 Oct 2002 22:34:45 +0000 |
| Subject: | cvs: php4 /ext/gd/libgd gd_topal.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14969@lists.php.net to get a copy of this message | ||
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;