diff --git a/libvips/create/gaussmat.c b/libvips/create/gaussmat.c index e0de1a9a..89f27688 100644 --- a/libvips/create/gaussmat.c +++ b/libvips/create/gaussmat.c @@ -100,9 +100,15 @@ vips_gaussmat_build( VipsObject *object ) if( VIPS_OBJECT_CLASS( vips_gaussmat_parent_class )->build( object ) ) return( -1 ); - if( vips_object_argument_isset( object, "integer" ) ) - vips_warn( class->nickname, - "'integer' is deprecated, use 'precision' instead" ); + /* The old, deprecated @integer property has been deliberately set to + * FALSE and they've not used the new @precision property ... switch + * to float to help them out. + */ + if( vips_object_argument_isset( object, "integer" ) && + !vips_object_argument_isset( object, "precision" ) && + !gaussmat->integer ) + gaussmat->precision = VIPS_PRECISION_FLOAT; + if( vips_check_precision_intfloat( class->nickname, gaussmat->precision ) ) return( -1 ); diff --git a/libvips/create/logmat.c b/libvips/create/logmat.c index 087060c8..5b3a480b 100644 --- a/libvips/create/logmat.c +++ b/libvips/create/logmat.c @@ -99,9 +99,15 @@ vips_logmat_build( VipsObject *object ) if( VIPS_OBJECT_CLASS( vips_logmat_parent_class )->build( object ) ) return( -1 ); - if( vips_object_argument_isset( object, "integer" ) ) - vips_warn( class->nickname, - "'integer' is deprecated, use 'precision' instead" ); + /* The old, deprecated @integer property has been deliberately set to + * FALSE and they've not used the new @precision property ... switch + * to float to help them out. + */ + if( vips_object_argument_isset( object, "integer" ) && + !vips_object_argument_isset( object, "precision" ) && + !logmat->integer ) + logmat->precision = VIPS_PRECISION_FLOAT; + if( vips_check_precision_intfloat( class->nickname, logmat->precision ) ) return( -1 );