diff --git a/ChangeLog b/ChangeLog index 3d53f258..2c9af0ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2000-08-14 Frank Warmerdam + * tif_open.c: Set STRIPCHOP_DEFAULT for O_RDWR as well as O_RDONLY + so that files opened for update can be strip chopped too. + * tif_read.c: fixed up bug with files missing rowsperstrip and the strips per separation fix done a few weeks ago. diff --git a/libtiff/tif_open.c b/libtiff/tif_open.c index f81f3acc..d6e7c050 100644 --- a/libtiff/tif_open.c +++ b/libtiff/tif_open.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_open.c,v 1.2 1999-09-08 19:07:02 warmerda Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_open.c,v 1.3 2000-08-14 17:30:58 warmerda Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -170,7 +170,7 @@ TIFFClientOpen( * a file is opened read-only. */ tif->tif_flags = FILLORDER_MSB2LSB; - if (m == O_RDONLY) + if (m == O_RDONLY || m == O_RDWR) #ifdef STRIPCHOP_DEFAULT tif->tif_flags |= TIFF_MAPPED|STRIPCHOP_DEFAULT; #else