From: Cristy Date: Wed, 8 Mar 2017 01:00:39 +0000 (-0500) Subject: https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31377& X-Git-Tag: 7.0.5-2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d71ecd57640327233bbc009099bf963e4076fac;p=imagemagick https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=31377& --- diff --git a/MagickCore/fx.c b/MagickCore/fx.c index bb035e529..f968f410f 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -1130,8 +1130,7 @@ static double FxChannelStatistics(FxInfo *fx_info,Image *image, if (option >= 0) { channel=(PixelChannel) option; - channel_mask=(ChannelType) (channel_mask | (1 << channel)); - (void) SetPixelChannelMask(image,channel_mask); + channel_mask=SetPixelChannelMask(image,(ChannelType) (1 << channel)); } } (void) FormatLocaleString(key,MagickPathExtent,"%p.%.20g.%s",(void *) image,