From 4c1aeaacd9ee155fcfbdeeba4ea5ae97cb6359a2 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 2 Dec 2020 21:02:05 +0000 Subject: [PATCH] add is_a_source to ppmload ppmload_source was missing an ia_a test see https://github.com/libvips/libvips/issues/1915 --- libvips/foreign/ppmload.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvips/foreign/ppmload.c b/libvips/foreign/ppmload.c index 7933c03b..51015d21 100644 --- a/libvips/foreign/ppmload.c +++ b/libvips/foreign/ppmload.c @@ -786,6 +786,7 @@ vips_foreign_load_ppm_source_class_init( VipsForeignLoadPpmFileClass *class ) { GObjectClass *gobject_class = G_OBJECT_CLASS( class ); VipsObjectClass *object_class = (VipsObjectClass *) class; + VipsForeignLoadClass *load_class = (VipsForeignLoadClass *) class; gobject_class->set_property = vips_object_set_property; gobject_class->get_property = vips_object_get_property; @@ -793,6 +794,8 @@ vips_foreign_load_ppm_source_class_init( VipsForeignLoadPpmFileClass *class ) object_class->nickname = "ppmload_source"; object_class->build = vips_foreign_load_ppm_source_build; + load_class->is_a_source = vips_foreign_load_ppm_is_a_source; + VIPS_ARG_OBJECT( class, "source", 1, _( "Source" ), _( "Source to load from" ),