From 42862eeefd56c27320b4dd9f5f951deb91e9acfb Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Fri, 31 Jan 2003 16:42:42 +0000 Subject: [PATCH] allow opening compressed tiff files in update model --- libtiff/tif_open.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libtiff/tif_open.c b/libtiff/tif_open.c index 0f252797..1d3ccef9 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.7 2002-04-20 12:16:52 dron Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_open.c,v 1.8 2003-01-31 16:42:42 warmerda Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -363,14 +363,6 @@ TIFFClientOpen( !TIFFMapFileContents(tif, (tdata_t*) &tif->tif_base, &tif->tif_size)) tif->tif_flags &= ~TIFF_MAPPED; if (TIFFReadDirectory(tif)) { - if( m != O_RDONLY - && tif->tif_dir.td_compression != COMPRESSION_NONE ) - { - TIFFError( name, - "Can't open a compressed TIFF file" - " with compression for update." ); - goto bad; - } tif->tif_rawcc = -1; tif->tif_flags |= TIFF_BUFFERSETUP; return (tif);