From: cristy Date: Sat, 17 Jan 2015 14:02:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1431 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e36bf51231f20596708785f816a41d0256873d92;p=imagemagick --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 5a5c68077..c64b3561c 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -1155,7 +1155,8 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image, } case OnAlphaChannel: { - status=SetImageAlpha(image,OpaqueAlpha,exception); + if (image->alpha_trait == UndefinedPixelTrait) + status=SetImageAlpha(image,OpaqueAlpha,exception); image->alpha_trait=BlendPixelTrait; break; }