TIFFWriteCheck(): call TIFFForceStrileArrayWriting() when needed (should have gone with eaeca6274a
) (master only)
This commit is contained in:
parent
6662e2b388
commit
a21714f028
@ -626,6 +626,20 @@ TIFFWriteCheck(TIFF* tif, int tiles, const char* module)
|
|||||||
if (tif->tif_scanlinesize == 0)
|
if (tif->tif_scanlinesize == 0)
|
||||||
return (0);
|
return (0);
|
||||||
tif->tif_flags |= TIFF_BEENWRITING;
|
tif->tif_flags |= TIFF_BEENWRITING;
|
||||||
|
|
||||||
|
if( tif->tif_dir.td_stripoffset_entry.tdir_tag != 0 &&
|
||||||
|
tif->tif_dir.td_stripoffset_entry.tdir_count == 0 &&
|
||||||
|
tif->tif_dir.td_stripoffset_entry.tdir_type == 0 &&
|
||||||
|
tif->tif_dir.td_stripoffset_entry.tdir_offset.toff_long8 == 0 &&
|
||||||
|
tif->tif_dir.td_stripbytecount_entry.tdir_tag != 0 &&
|
||||||
|
tif->tif_dir.td_stripbytecount_entry.tdir_count == 0 &&
|
||||||
|
tif->tif_dir.td_stripbytecount_entry.tdir_type == 0 &&
|
||||||
|
tif->tif_dir.td_stripbytecount_entry.tdir_offset.toff_long8 == 0 &&
|
||||||
|
!(tif->tif_flags & TIFF_DIRTYDIRECT) )
|
||||||
|
{
|
||||||
|
TIFFForceStrileArrayWriting(tif);
|
||||||
|
}
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user