From f60775ef27f46ee69e6502de83e7d1be58931acd Mon Sep 17 00:00:00 2001 From: cristy Date: Fri, 1 Mar 2013 01:55:10 +0000 Subject: [PATCH] --- MagickCore/statistic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1