Number pages starting with zero as per bug

http://bugzilla.remotesensing.org/show_bug.cgi?id=341
This commit is contained in:
Andrey Kiselev 2003-05-24 06:16:09 +00:00
parent 0efbf194c5
commit f00e62d510

View File

@ -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 * Copyright (c) 1990-1997 Sam Leffler
@ -280,7 +280,7 @@ main(int argc, char* argv[])
} else } else
TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.); TIFFSetField(out, TIFFTAG_YRESOLUTION, 196.);
TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH); TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
TIFFSetField(out, TIFFTAG_PAGENUMBER, pn+1, npages); TIFFSetField(out, TIFFTAG_PAGENUMBER, pn, npages);
if (!verbose) if (!verbose)
whandler = TIFFSetWarningHandler(NULL); whandler = TIFFSetWarningHandler(NULL);