From: cristy Date: Wed, 8 Oct 2014 11:37:05 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1910 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f76ccdf9c7bac259c62dd3494a2b4afa1e5e805;p=imagemagick --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 81fcf4d34..659b6c1ba 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -1074,6 +1074,8 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image, } case DeactivateAlphaChannel: { + if (image->alpha_trait == UndefinedPixelTrait) + status=SetImageAlpha(image,OpaqueAlpha,exception); image->alpha_trait=CopyPixelTrait; break; }