From 30b91ab8b14960e271fb600859af3400dc36287c Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 17 Jun 2017 16:09:51 +0200 Subject: [PATCH] Removed unnecessary call to SetPixelGray. --- coders/psd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: -- 2.40.0