From 52e90adc5cf7c611fce097c4b97c8201c52a9377 Mon Sep 17 00:00:00 2001 From: dirk Date: Thu, 1 Sep 2016 23:14:18 +0200 Subject: [PATCH] Set all values of the color. --- coders/psd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coders/psd.c b/coders/psd.c index 107fc1bf6..1591cf21a 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -1252,6 +1252,9 @@ static MagickBooleanType ReadPSDChannel(Image *image,const PSDInfo *psd_info, layer_info->mask.image->alpha_trait=UndefinedPixelTrait; GetPixelInfo(layer_info->mask.image,&color); color.red=layer_info->mask.background == 0 ? 0 : QuantumRange; + color.green=color.red; + color.blue=color.red; + color.black=color.red; SetImageColor(layer_info->mask.image,&color,exception); (void) CompositeImage(layer_info->mask.image,mask,OverCompositeOp, MagickTrue,layer_info->mask.page.x,layer_info->mask.page.y, -- 2.40.0