From f00e62d51069cba13eb947fe80981a2975378d00 Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Sat, 24 May 2003 06:16:09 +0000 Subject: [PATCH] Number pages starting with zero as per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=341 --- tools/fax2tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/fax2tiff.c b/tools/fax2tiff.c index a78e6695..5de18001 100644 --- a/tools/fax2tiff.c +++ b/tools/fax2tiff.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/tools/fax2tiff.c,v 1.6 2003-03-12 14:05:05 dron Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/tools/fax2tiff.c,v 1.7 2003-05-24 06:16:09 dron Exp $ */ /* * Copyright (c) 1990-1997 Sam Leffler @@ -280,7 +280,7 @@ main(int argc, char* argv[]) } else TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.); TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH); - TIFFSetField(out, TIFFTAG_PAGENUMBER, pn+1, npages); + TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages); if (!verbose) whandler = TIFFSetWarningHandler(NULL);