From: dirk Date: Thu, 1 Sep 2016 21:14:18 +0000 (+0200) Subject: Set all values of the color. X-Git-Tag: 7.0.3-0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52e90adc5cf7c611fce097c4b97c8201c52a9377;p=imagemagick Set all values of the color. --- 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,