]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Thu, 16 Sep 2010 00:10:05 +0000 (00:10 +0000)
committeranthony <anthony@git.imagemagick.org>
Thu, 16 Sep 2010 00:10:05 +0000 (00:10 +0000)
magick/resample.c

index 361d9b2ff4c6a0fcb8f11e6b5a9117aec2b5a93b..001ed34ecb6e05b25b51f4a1c367b96cc42b771b 100644 (file)
@@ -1123,7 +1123,7 @@ MagickExport MagickBooleanType ResamplePixelColor(
   /*
     Result sanity check -- this should NOT happen
   */
-  if ( hit < 4 ) {
+  if ( hit == 0 ) {  /* should be 4 */
     /* not enough pixels in resampling, resort to direct interpolation */
 #if 0
     pixel->opacity = pixel->red = pixel->green = pixel->blue = 0;