From fdafb4de5f85bde04e41089378fb1f69f0b87c22 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 19 Aug 2018 04:26:24 +0100 Subject: [PATCH] oop fix tiff2vips change y is relative --- libvips/foreign/tiff2vips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvips/foreign/tiff2vips.c b/libvips/foreign/tiff2vips.c index 2f0545e9..8804042b 100644 --- a/libvips/foreign/tiff2vips.c +++ b/libvips/foreign/tiff2vips.c @@ -1942,7 +1942,7 @@ rtiff_stripwise_generate( VipsRegion *or, /* Shut down the input file as soon as we can. */ - if( y >= or->im->Ysize ) + if( r->top + y >= or->im->Ysize ) rtiff_free( rtiff ); VIPS_GATE_STOP( "rtiff_stripwise_generate: work" );