From aad41a4979476430fded1073de1a2e920f1ddbd5 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 30 Nov 2014 19:25:16 +0000 Subject: [PATCH] --- MagickCore/pixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/pixel.c b/MagickCore/pixel.c index f02b01642..79d9c691f 100644 --- a/MagickCore/pixel.c +++ b/MagickCore/pixel.c @@ -6154,7 +6154,7 @@ MagickExport void SetPixelChannelMask(Image *image, (UpdatePixelTrait | BlendPixelTrait) : UpdatePixelTrait); } SetPixelChannelTraits(image,AlphaPixelChannel, - GetChannelBit(channel_mask,channel) == 0 ? CopyPixelTrait : + GetChannelBit(channel_mask,AlphaPixelChannel) == 0 ? CopyPixelTrait : image->alpha_trait); if (image->storage_class == PseudoClass) SetPixelChannelTraits(image,IndexPixelChannel,CopyPixelTrait); -- 2.40.0