Skip to content
Permalink
Browse files

Added missing call to ConstrainColormapIndex.

  • Loading branch information...
dlemstra committed Jan 15, 2016
1 parent 6f1879d commit e14fd0a2801f73bdc123baf4fbab97dec55919eb
Showing with 2 additions and 1 deletion.
  1. +2 −1 coders/psd.c
@@ -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++;
}

0 comments on commit e14fd0a

Please sign in to comment.
You can’t perform that action at this time.