From 4ab1d45aae02372de60a21695a4d03f2f76804c7 Mon Sep 17 00:00:00 2001 From: dirk Date: Sat, 7 Nov 2015 23:12:55 +0100 Subject: [PATCH] Fix for the minimum size of a colormap. --- MagickCore/colormap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/colormap.c b/MagickCore/colormap.c index e6152338d..e7cf95d4b 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)); -- 2.40.0