mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fix for bug #19941
This commit is contained in:
parent
8361687a4a
commit
ebfd9aaa47
1 changed files with 1 additions and 1 deletions
|
@ -1493,7 +1493,7 @@ gdImageTrueColorToPalette (gdImagePtr im, int dither, int colorsWanted)
|
|||
my_cquantize_ptr cquantize = 0;
|
||||
int i;
|
||||
size_t arraysize;
|
||||
if (!im->trueColor)
|
||||
if (!im->trueColor || colorsWanted <= 0)
|
||||
{
|
||||
/* Nothing to do! */
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue