]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 24 May 2012 14:26:01 +0000 (14:26 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 24 May 2012 14:26:01 +0000 (14:26 +0000)
MagickCore/pixel-accessor.h

index 78d9bcc31f13c12775602145af4f56100abd878d..44fa9f22dc2357576490079e712078c45af93ab0 100644 (file)
@@ -436,6 +436,9 @@ static inline MagickBooleanType IsPixelMonochrome(const Image *restrict image,
 static inline MagickBooleanType IsPixelInfoGray(
   const PixelInfo *restrict pixel_info)
 {
+  if ((IsGrayColorspace(pixel_info->colorspace) == MagickFalse) &&
+      (IsRGBColorspace(pixel_info->colorspace) == MagickFalse))
+    return(MagickFalse);
 #if !defined(MAGICKCORE_HDRI_SUPPORT)
   if ((pixel_info->red == pixel_info->green) &&
       (pixel_info->green == pixel_info->blue))