]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 13 Dec 2011 19:34:45 +0000 (19:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 13 Dec 2011 19:34:45 +0000 (19:34 +0000)
MagickCore/pixel.c

index 6e20e10458e3ef35da2e768ab7932fc59db68e6b..c0e315528e06e423e969465da30d8844f2c44279 100644 (file)
@@ -5419,8 +5419,8 @@ MagickExport void SetPixelChannelMapMask(Image *image,
     channel=GetPixelChannelMapChannel(image,i);
     SetPixelChannelMapTraits(image,channel,
       GetChannelBit(channel_mask,channel) == 0 ? CopyPixelTrait :
-      channel == AlphaPixelChannel ? UpdatePixelTrait : (PixelTrait)
-      (UpdatePixelTrait | BlendPixelTrait));
+      image->matte == MagickFalse || (channel == AlphaPixelChannel) ?
+      UpdatePixelTrait : (PixelTrait) (UpdatePixelTrait | BlendPixelTrait));
   }
   if (image->storage_class == PseudoClass)
     SetPixelChannelMapTraits(image,IndexPixelChannel,CopyPixelTrait);