diff --git a/libvips/morphology/rank.c b/libvips/morphology/rank.c index 67f2f5f1..09bcebc6 100644 --- a/libvips/morphology/rank.c +++ b/libvips/morphology/rank.c @@ -24,6 +24,8 @@ * - gtk-doc * 17/1/14 * - redone as a class + * 12/11/16 + * - oop, allow index == 0, thanks Rob */ /* @@ -430,7 +432,7 @@ vips_rank_class_init( VipsRankClass *class ) _( "Select pixel at index" ), VIPS_ARGUMENT_REQUIRED_INPUT, G_STRUCT_OFFSET( VipsRank, index ), - 1, 100000000, 50 ); + 0, 100000000, 50 ); }