From a16e3b25c9026e9c6993523e68cc0ee90fae9bec Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 12 Feb 2017 12:11:09 -0500 Subject: [PATCH] ... --- MagickCore/statistic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MagickCore/statistic.c b/MagickCore/statistic.c index 41cc52088..27660ea16 100644 --- a/MagickCore/statistic.c +++ b/MagickCore/statistic.c @@ -1320,9 +1320,8 @@ static size_t GetImageChannels(const Image *image) { PixelChannel channel=GetPixelChannelChannel(image,i); PixelTrait traits=GetPixelChannelTraits(image,channel); - if (traits == UndefinedPixelTrait) - continue; - channels++; + if ((traits & UpdatePixelTrait) != 0) + channels++; } return((size_t) (channels == 0 ? 1 : channels)); } -- 2.50.1