Fixed problem with bit fill order tag setting: was not copied from source

image.
This commit is contained in:
Andrey Kiselev 2003-05-05 19:06:52 +00:00
parent 54ed047ec5
commit c34905ee73

View File

@ -1,4 +1,4 @@
/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiffdither.c,v 1.4 2003-03-12 14:05:06 dron Exp $ */
/* $Header: /cvs/maptools/cvsroot/libtiff/tools/tiffdither.c,v 1.5 2003-05-05 19:06:52 dron Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@ -247,7 +247,10 @@ main(int argc, char* argv[])
TIFFSetField(out, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
TIFFSetField(out, TIFFTAG_COMPRESSION, compression);
TIFFSetField(out, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK);
TIFFSetField(out, TIFFTAG_FILLORDER, fillorder);
if (fillorder)
TIFFSetField(out, TIFFTAG_FILLORDER, fillorder);
else
CopyField(TIFFTAG_FILLORDER, shortv);
sprintf(thing, "Dithered B&W version of %s", argv[optind]);
TIFFSetField(out, TIFFTAG_IMAGEDESCRIPTION, thing);
CopyField(TIFFTAG_ORIENTATION, shortv);