From: Dirk Lemstra Date: Sat, 17 Jun 2017 14:09:51 +0000 (+0200) Subject: Removed unnecessary call to SetPixelGray. X-Git-Tag: 7.0.6-1~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30b91ab8b14960e271fb600859af3400dc36287c;p=imagemagick Removed unnecessary call to SetPixelGray. --- diff --git a/coders/psd.c b/coders/psd.c index 3bd8b767b..fd18c01ef 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -903,15 +903,13 @@ static inline void SetPSDPixel(Image *image,const size_t channels, { case -1: { - SetPixelAlpha(image, pixel,q); + SetPixelAlpha(image,pixel,q); break; } case -2: case 0: { SetPixelRed(image,pixel,q); - if (channels == 1 || type == -2) - SetPixelGray(image,pixel,q); break; } case 1: