]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Mon, 23 Apr 2012 00:37:37 +0000 (00:37 +0000)
committeranthony <anthony@git.imagemagick.org>
Mon, 23 Apr 2012 00:37:37 +0000 (00:37 +0000)
MagickCore/threshold.c

index 19243fa1397e8747bea11a56603d7e667b10dbf6..d5e2eb836dde808712d79cadd6fa78be51cc0ffe 100644 (file)
@@ -489,7 +489,7 @@ MagickExport MagickBooleanType BlackThresholdImage(Image *image,
 {
 #define ThresholdImageTag  "Threshold/Image"
 #define BlackThreshold(pixel,threshold_percentage) \
-  if (pixel < threshold_percentage) pixel=0;
+  if (pixel <= threshold_percentage) pixel=0;
 
   CacheView
     *image_view;