diff --git a/cplusplus/VImage.cpp b/cplusplus/VImage.cpp index 205326d2..5ba78c54 100644 --- a/cplusplus/VImage.cpp +++ b/cplusplus/VImage.cpp @@ -193,7 +193,7 @@ VOption::set( const char *name, const VObject value ) { Pair *pair = new Pair( name ); VipsObject *object = value.get_object(); - GType type = G_VALUE_TYPE( object ); + GType type = G_VALUE_TYPE( VIPS_OBJECT_GET_CLASS( object ) ); pair->input = true; g_value_init( &pair->value, type );