From c34905ee7356cb9e2e3b658dcbfcbe04cab67357 Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Mon, 5 May 2003 19:06:52 +0000 Subject: [PATCH] Fixed problem with bit fill order tag setting: was not copied from source image. --- tools/tiffdither.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/tiffdither.c b/tools/tiffdither.c index 946e5a18..c4135b7b 100644 --- a/tools/tiffdither.c +++ b/tools/tiffdither.c @@ -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);