Handle TIFF_IFD tag type correctly.

This commit is contained in:
Andrey Kiselev 2003-12-04 10:26:15 +00:00
parent 25ad11c155
commit a5407eb75f

View File

@ -1,4 +1,4 @@
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dirwrite.c,v 1.17 2003-08-12 07:50:37 dron Exp $ */ /* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_dirwrite.c,v 1.18 2003-12-04 10:26:15 dron Exp $ */
/* /*
* Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1988-1997 Sam Leffler
@ -474,6 +474,7 @@ TIFFWriteNormalTag(TIFF* tif, TIFFDirEntry* dir, const TIFFFieldInfo* fip)
break; break;
case TIFF_LONG: case TIFF_LONG:
case TIFF_SLONG: case TIFF_SLONG:
case TIFF_IFD:
if (wc > 1) { if (wc > 1) {
uint32* lp; uint32* lp;
if (wc == (u_short) TIFF_VARIABLE if (wc == (u_short) TIFF_VARIABLE