]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 10 Aug 2014 00:01:19 +0000 (00:01 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 10 Aug 2014 00:01:19 +0000 (00:01 +0000)
MagickCore/statistic.c

index 2b1ca9e84c39d2b6b7158e9dbaf345ded21b1c95..ca5d03d117e04912d9c070b825ea8fbeece49ad5 100644 (file)
@@ -1926,7 +1926,7 @@ static size_t GetImageChannels(const Image *image)
   {
     PixelChannel channel=GetPixelChannelChannel(image,i);
     PixelTrait traits=GetPixelChannelTraits(image,channel);
-    if (traits != UndefinedPixelTrait)
+    if ((traits & UpdatePixelTrait) != 0)
       channels++;
   }
   return(channels == 0 ? 1 : channels);