From: Cristy Date: Wed, 1 Feb 2017 11:25:48 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-7~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d23ce40484f2c20479ea4463bc4f718b65d352d;p=imagemagick ... --- diff --git a/MagickCore/channel.c b/MagickCore/channel.c index 56816ca5f..c46b81255 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -334,7 +334,6 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, case ExchangeChannelOp: case TransferChannelOp: { - destination_channel=(PixelChannel) i; if (channel_op == AssignChannelOp) pixel=StringToDoubleInterval(token,(double) QuantumRange+1.0); else @@ -348,6 +347,7 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, return(destination_image); } } + destination_channel=(PixelChannel) i; switch (destination_channel) { case RedPixelChannel: