Skip to content
Permalink
Browse files Browse the repository at this point in the history
Added missing call to ConstrainColormapIndex.
  • Loading branch information
dlemstra committed Jan 15, 2016
1 parent 6f1879d commit e14fd0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/psd.c
Expand Up @@ -835,7 +835,8 @@ static MagickBooleanType ReadPSDChannelPixels(Image *image,
SetPixelIndex(image,(((unsigned char) pixel) &
(0x01 << (7-bit))) != 0 ? 0 : 255,q);
SetPixelViaPixelInfo(image,image->colormap+(ssize_t)
GetPixelIndex(image,q),q);
ConstrainColormapIndex(image,GetPixelIndex(image,q),
exception),q);
q+=GetPixelChannels(image);
x++;
}
Expand Down

0 comments on commit e14fd0a

Please sign in to comment.