From: Cristy Date: Sat, 15 Aug 2015 21:02:03 +0000 (-0400) Subject: Remove laze evaluation for SetImageAlphaChannel() alpha traits X-Git-Tag: 7.0.1-0~690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94beb9efd871cd08ab2e3e74f2cfd598efbdff58;p=imagemagick Remove laze evaluation for SetImageAlphaChannel() alpha traits --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 34ce618fa..c7f7102a4 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -1065,6 +1065,7 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image, /* Copy pixel intensity to the alpha channel. */ + image->alpha_trait=UpdatePixelTrait; status=CompositeImage(image,image,IntensityCompositeOp,MagickTrue,0,0, exception); if (alpha_type == ShapeAlphaChannel) @@ -1234,5 +1235,6 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image, } if (status == MagickFalse) return(status); + (void) SetPixelChannelMask(image,image->channel_mask); return(SyncImagePixelCache(image,exception)); }