From: dirk Date: Sun, 8 Nov 2015 20:53:12 +0000 (+0100) Subject: Set minimum size of colormap back to 1. X-Git-Tag: 7.0.1-0~506^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d6d17261c720e52081694673e1d1f68f1493177;p=imagemagick Set minimum size of colormap back to 1. --- diff --git a/MagickCore/colormap.c b/MagickCore/colormap.c index f5786172d..4897d18aa 100644 --- a/MagickCore/colormap.c +++ b/MagickCore/colormap.c @@ -114,7 +114,7 @@ MagickExport MagickBooleanType AcquireImageColormap(Image *image, assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename); - image->colors=MagickMax(colors,2); + image->colors=MagickMax(colors,1); if (image->colormap == (PixelInfo *) NULL) image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors, sizeof(*image->colormap));