From: cristy Date: Wed, 11 Jul 2012 23:36:39 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5118eb46ae6d198ad42334fa87548664224fdd4;p=imagemagick --- diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c index 33c394e4c..364f0f35c 100644 --- a/MagickCore/threshold.c +++ b/MagickCore/threshold.c @@ -437,7 +437,7 @@ MagickExport MagickBooleanType BilevelImage(Image *image,const double threshold, traits=GetPixelChannelMapTraits(image,channel); if ((traits & UpdatePixelTrait) == 0) continue; - if ((image->channel_mask & SyncChannels) == 0) + if (image->channel_mask == DefaultChannels) pixel=q[i]; q[i]=(Quantum) (pixel <= threshold ? 0 : QuantumRange); }