From: anthony Date: Fri, 10 Sep 2010 01:54:39 +0000 (+0000) Subject: Minor bug fix X-Git-Tag: 7.0.1-0~8959 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99c6598c727454762913a54a0f7b6ae77de49922;p=imagemagick Minor bug fix --- diff --git a/magick/resize.c b/magick/resize.c index 43454e12c..05353db4c 100644 --- a/magick/resize.c +++ b/magick/resize.c @@ -912,11 +912,12 @@ MagickExport ResizeFilter *AcquireResizeFilter(const Image *image, support, x; - /* Lanczos leaves filter_type as Lanczos as it gets a different - * support, even though the function points to Sinc. - * So set it correct for the actual report. + /* Reset the filter_type for specific compound filters so + * the actual 'function' is returned, not the user selection. + * Specifically for Sinc and Cubic compound filters. */ if ( resize_filter->filter == Sinc ) filter_type=SincFilter; + if ( resize_filter->filter == CubicBC ) filter_type=CubicFilter; /* Report Filter Details