From: Cristy Date: Fri, 3 Feb 2017 19:21:08 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-7~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eea078d097d540778d97f930edda5ff86e894487;p=imagemagick ... --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index ddfce6dcd..ca3811a0a 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -356,32 +356,6 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, (void) SetPixelMetaChannels(destination_image,(size_t) ( destination_channel-GetPixelChannels(destination_image)+1), exception); - switch (destination_channel) - { - case RedPixelChannel: - case GreenPixelChannel: - case BluePixelChannel: - case BlackPixelChannel: - case IndexPixelChannel: - break; - case AlphaPixelChannel: - { - destination_image->alpha_trait=BlendPixelTrait; - break; - } - case ReadMaskPixelChannel: - { - destination_image->read_mask=MagickTrue; - break; - } - case WriteMaskPixelChannel: - { - destination_image->write_mask=MagickTrue; - break; - } - default: - break; - } channel_mask=(ChannelType) (channel_mask | ParseChannelOption(token)); if (((channels >= 1) || (destination_channel >= 1)) && (IsGrayColorspace(destination_image->colorspace) != MagickFalse))