commit | abace416e67464ca6dac2324410667b05076a9c2 | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Sun Dec 11 15:56:53 2011 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Sun Dec 11 15:56:53 2011 +0000 |
tree | 09d9c83677497d77668ec523ed166039772aac07 | |
parent | 4679572011210c29de1840060a4bf942afe8d29e [diff] [blame] |
diff --git a/MagickCore/histogram.c b/MagickCore/histogram.c index 60f0ec4..04695fe 100644 --- a/MagickCore/histogram.c +++ b/MagickCore/histogram.c
@@ -1014,10 +1014,14 @@ ChannelType channel_mask; + PixelChannel + channel; + PixelTrait traits; - traits=GetPixelChannelMapTraits(image,i); + channel=GetPixelChannelMapChannel(image,i); + traits=GetPixelChannelMapTraits(image,channel); if ((traits & UpdatePixelTrait) == 0) continue; channel_mask=SetPixelChannelMask(image,(ChannelType) (1 << i));