From: cristy Date: Fri, 1 Mar 2013 01:55:10 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f60775ef27f46ee69e6502de83e7d1be58931acd;p=imagemagick --- diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index 3646e151f..010c2c5c1 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -1499,7 +1499,7 @@ static size_t GetImageChannels(const Image *image) { PixelChannel channel=GetPixelChannelChannel(image,i); PixelTrait traits=GetPixelChannelTraits(image,channel); - if (((traits & CopyPixelTrait) != 0) || ((traits & UpdatePixelTrait) != 0)) + if (traits != UndefinedPixelTrait) channels++; } return(channels);