From 9d23ce40484f2c20479ea4463bc4f718b65d352d Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 1 Feb 2017 06:25:48 -0500 Subject: [PATCH] ... --- MagickCore/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.40.0