Browse Source

Fix for bug #19941

experimental/threaded
Rasmus Lerdorf 24 years ago
parent
commit
ebfd9aaa47
  1. 2
      ext/gd/libgd/gd_topal.c

2
ext/gd/libgd/gd_topal.c

@ -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…
Cancel
Save