From a7a025707a6098b2fbd2b3515e066a28e9a3aa33 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 10 Dec 2014 17:32:56 +0000 Subject: [PATCH] fix default interpolator in similarity was not defaulting correctly --- libvips/resample/affine.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libvips/resample/affine.c b/libvips/resample/affine.c index 0eca05c6..05637d38 100644 --- a/libvips/resample/affine.c +++ b/libvips/resample/affine.c @@ -419,7 +419,10 @@ vips_affine_build( VipsObject *object ) vips_check_vector_length( class->nickname, affine->oarea->n, 4 ) ) return( -1 ); - if( !vips_object_argument_isset( object, "interpolate" ) ) + /* We can't use vips_object_argument_isset(), since it may have been + * set to NULL, see vips_similarity(). + */ + if( !affine->interpolate ) g_object_set( object, "interpolate", vips_interpolate_new( "bilinear" ), NULL );