From 99c6598c727454762913a54a0f7b6ae77de49922 Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 10 Sep 2010 01:54:39 +0000 Subject: [PATCH] Minor bug fix --- magick/resize.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.50.1