commit | dcfc1ad7e0ad199ccd86e9508e9c5775e4c4bbdb | [log] [tgz] |
---|---|---|
author | cristy <urban-warrior@git.imagemagick.org> | Thu Jul 07 16:25:41 2011 +0000 |
committer | cristy <urban-warrior@git.imagemagick.org> | Thu Jul 07 16:25:41 2011 +0000 |
tree | 4b82cdc9ea5548011fa3b286b42bb061b2b8c8ce | |
parent | 92611572b8d3d992b00b590f90e4a11cd587e5ee [diff] [blame] |
diff --git a/coders/histogram.c b/coders/histogram.c index 6adcad6..7e0f11b 100644 --- a/coders/histogram.c +++ b/coders/histogram.c
@@ -277,7 +277,7 @@ histogram[ScaleQuantumToChar(GetPixelGreen(image,p))].green++; if ((GetPixelBlueTraits(image) & ActivePixelTrait) != 0) histogram[ScaleQuantumToChar(GetPixelBlue(image,p))].blue++; - p+=GetPixelChannels(image); + p+=GetPixelComponents(image); } } maximum=histogram[0].red;