small tiff write fix

from recent reworking
This commit is contained in:
John Cupitt 2013-10-01 12:16:24 +01:00
parent dfe2ddf6c5
commit 35e8e63829
1 changed files with 2 additions and 1 deletions

View File

@ -1169,7 +1169,8 @@ write_tif_stripwise( TiffWrite *tw )
*/
if( tw->im->Coding != VIPS_CODING_LABQ &&
!tw->onebit &&
TIFFTileSize( tw->tif ) != VIPS_IMAGE_SIZEOF_LINE( tw->im ) ) {
TIFFScanlineSize( tw->tif ) !=
VIPS_IMAGE_SIZEOF_LINE( tw->im ) ) {
vips_error( "vips2tiff",
"%s", _( "unsupported image format" ) );
return( -1 );