]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/340
authorCristy <urban-warrior@imagemagick.org>
Mon, 2 Jan 2017 20:34:59 +0000 (15:34 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 2 Jan 2017 20:34:59 +0000 (15:34 -0500)
MagickCore/image.c

index 5c5c07e587d1bebf726cc9a7273cfe702fe9791e..e6796b7dbbb2aa1ffc27eb7d3969e0b996a0f771 100644 (file)
@@ -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;