Minor fix in primitives.cpp

This commit is contained in:
Gaspar Capello 2021-05-20 08:53:11 -03:00 committed by David Capello
parent 8b6aa2945f
commit b26d3dc7b6

View File

@ -497,7 +497,7 @@ void preprocess_transparent_pixels(Image* image)
}
case IMAGE_GRAYSCALE: {
LockImageBits<RgbTraits> bits(image);
LockImageBits<GrayscaleTraits> bits(image);
auto it = bits.begin(), end = bits.end();
for (; it != end; ++it) {
if (graya_geta(*it) == 0)