projects
/
imagemagick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33e524b
)
(no commit message)
author
cristy
<urban-warrior@git.imagemagick.org>
Wed, 24 Aug 2011 17:54:58 +0000
(17:54 +0000)
committer
cristy
<urban-warrior@git.imagemagick.org>
Wed, 24 Aug 2011 17:54:58 +0000
(17:54 +0000)
MagickCore/pixel.c
patch
|
blob
|
history
diff --git
a/MagickCore/pixel.c
b/MagickCore/pixel.c
index 4f1a5f2e6e31686382fc05b2ecd7810db8d03988..6588568d041c0cd51d0543e32c6a179d2af2a5aa 100644
(file)
--- a/
MagickCore/pixel.c
+++ b/
MagickCore/pixel.c
@@
-3588,7
+3588,9
@@
MagickExport void InitializePixelChannelMap(Image *image)
SetPixelChannelMapTraits(image,(PixelChannel) i,(PixelTrait)
UpdatePixelTrait);
alpha_channel=GetPixelChannelMapChannel(image,AlphaPixelChannel);
- if (image->matte != MagickFalse)
+ if (image->matte == MagickFalse)
+ SetPixelChannelMapTraits(image,AlphaPixelChannel,CopyPixelTrait);
+ else
for (i=0; i < (ssize_t) image->number_channels; i++)
if ((PixelChannel) i != alpha_channel)
SetPixelChannelMapTraits(image,(PixelChannel) i,(PixelTrait)