]> granicus.if.org Git - imagemagick/commitdiff
Minor bug fix
authoranthony <anthony@git.imagemagick.org>
Fri, 10 Sep 2010 01:54:39 +0000 (01:54 +0000)
committeranthony <anthony@git.imagemagick.org>
Fri, 10 Sep 2010 01:54:39 +0000 (01:54 +0000)
magick/resize.c

index 43454e12cba47c9c8603752af4e4d08551055bd9..05353db4ca342c831b774c7c623e5965ae280683 100644 (file)
@@ -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