From: anthony Date: Thu, 16 Sep 2010 00:11:31 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8905 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=444aba6f2ffca9162b9448f9755a96bb1871874e;p=imagemagick --- diff --git a/magick/resample.c b/magick/resample.c index 001ed34ec..4c2063d03 100644 --- a/magick/resample.c +++ b/magick/resample.c @@ -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;