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

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