]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 24 Oct 2011 17:51:16 +0000 (17:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 24 Oct 2011 17:51:16 +0000 (17:51 +0000)
MagickCore/pixel.c

index 83c5332e950db55f243aa961cd0ca0e6de1980e0..2c0daa79f3a87942a3a74423e31e6689c161cbe1 100644 (file)
@@ -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)