Skip to content

Commit 808bec5

Browse files
authored
Merge pull request #1812 from lovell/cpp-set-vobject-class
cplusplus: ensure VOption::set for VObject uses class to determine type
2 parents f116d0b + 66e3c81 commit 808bec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cplusplus/VImage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ VOption::set( const char *name, const VObject value )
193193
{
194194
Pair *pair = new Pair( name );
195195
VipsObject *object = value.get_object();
196-
GType type = G_VALUE_TYPE( object );
196+
GType type = G_VALUE_TYPE( VIPS_OBJECT_GET_CLASS( object ) );
197197

198198
pair->input = true;
199199
g_value_init( &pair->value, type );

0 commit comments

Comments
 (0)