fix regression of multipage tiff thumbnail

the recent subifd addition had broken thumbnail of multipage tiffs,
thanks @petoor

see https://github.com/libvips/pyvips/issues/192
This commit is contained in:
John Cupitt 2020-06-15 10:22:01 +01:00
parent eb8ec27c86
commit 05b0359897
1 changed files with 2 additions and 2 deletions

View File

@ -356,9 +356,9 @@ vips_thumbnail_get_tiff_pyramid_subifd( VipsThumbnail *thumbnail )
#ifdef DEBUG
printf( "vips_thumbnail_get_tiff_pyramid_subifd: "
"%d layer pyramid detected\n",
thumbnail->n_pages );
thumbnail->n_subifds );
#endif /*DEBUG*/
thumbnail->level_count = thumbnail->n_pages;
thumbnail->level_count = thumbnail->n_subifds;
}
static int