From be1e600d758ee7c23ea8743534741ecb5c68b148 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Wed, 31 Jul 2002 20:53:15 +0000 Subject: [PATCH] TIFFWriteScanline() now explicitly sets the tif_row value instead of just incrementing it, in case the codec has been fooling with it. --- libtiff/tif_write.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libtiff/tif_write.c b/libtiff/tif_write.c index b0081992..06af9960 100644 --- a/libtiff/tif_write.c +++ b/libtiff/tif_write.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_write.c,v 1.6 2002-04-09 19:36:12 dron Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_write.c,v 1.7 2002-07-31 20:53:15 warmerda Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -154,7 +154,9 @@ TIFFWriteScanline(TIFF* tif, tdata_t buf, uint32 row, tsample_t sample) } status = (*tif->tif_encoderow)(tif, (tidata_t) buf, tif->tif_scanlinesize, sample); - tif->tif_row++; + + /* we are now poised at the beginning of the next row */ + tif->tif_row = row + 1; return (status); }