From 902698c7f3368bc48ec96be9faf45dd6471942cc Mon Sep 17 00:00:00 2001 From: cristy Date: Mon, 24 Oct 2011 17:51:16 +0000 Subject: [PATCH] --- MagickCore/pixel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MagickCore/pixel.c b/MagickCore/pixel.c index 83c5332e9..2c0daa79f 100644 --- a/MagickCore/pixel.c +++ b/MagickCore/pixel.c @@ -5409,7 +5409,9 @@ MagickExport void SetPixelChannelMap(Image *image, for (i=0; i < (ssize_t) GetPixelChannels(image); i++) SetPixelChannelMapTraits(image,(PixelChannel) i, - GetChannelBit(channel_mask,i) != 0 ? UpdatePixelTrait : CopyPixelTrait); + GetChannelBit(channel_mask,i) == 0 ? CopyPixelTrait : + image->matte == MagickFalse ? UpdatePixelTrait : + UpdatePixelTrait | BlendPixelTrait); for ( ; i < MaxPixelChannels; i++) SetPixelChannelMapTraits(image,(PixelChannel) i,UndefinedPixelTrait); if (image->storage_class == PseudoClass) -- 2.50.1