From 54d70a280d3a6eebe82f56e45a31ee8791c6ba38 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 2 Jan 2017 15:34:59 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/340 --- MagickCore/image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MagickCore/image.c b/MagickCore/image.c index 5c5c07e58..e6796b7db 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -3678,7 +3678,8 @@ MagickExport MagickBooleanType SyncImage(Image *image,ExceptionInfo *exception) if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"..."); assert(image->signature == MagickCoreSignature); - if (image->storage_class == DirectClass) + if ((image->storage_class != PseudoClass) || + (image->colormap == (PixelInfo *) NULL)) return(MagickFalse); range_exception=MagickFalse; status=MagickTrue; -- 2.40.0