Remove TIFFReassignTagToIgnore() call from the TIFFReadDirectory() function.
TIFFReassignTagToIgnore must be removed in the future, as it was never used properly. As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=692
This commit is contained in:
parent
f9e7ea11e4
commit
1b9c6e4f0a
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_dir.c,v 1.42 2004-11-29 16:39:13 dron Exp $ */
|
||||
/* $Id: tif_dir.c,v 1.43 2004-12-03 13:16:55 dron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -1431,6 +1431,8 @@ TIFFUnlinkDirectory(TIFF* tif, tdir_t dirn)
|
||||
* Set a table of tags that are to be replaced during directory process by the
|
||||
* 'IGNORE' state - or return TRUE/FALSE for the requested tag such that
|
||||
* 'ReadDirectory' can use the stored information.
|
||||
*
|
||||
* FIXME: this is never used properly. Should be removed in the future.
|
||||
*/
|
||||
int
|
||||
TIFFReassignTagToIgnore (enum TIFFIgnoreSense task, int TIFFtagID)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_dirread.c,v 1.44 2004-11-05 13:10:33 dron Exp $ */
|
||||
/* $Id: tif_dirread.c,v 1.45 2004-12-03 13:16:55 dron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -256,13 +256,6 @@ TIFFReadDirectory(TIFF* tif)
|
||||
fix = 0;
|
||||
for (dp = dir, n = dircount; n > 0; n--, dp++) {
|
||||
|
||||
/*
|
||||
* Find the field information entry for this tag.
|
||||
* Added check for tags to ignore ... [BFC]
|
||||
*/
|
||||
if( TIFFReassignTagToIgnore(TIS_EXTRACT, dp->tdir_tag) )
|
||||
dp->tdir_tag = IGNORE;
|
||||
|
||||
if (fix >= tif->tif_nfields || dp->tdir_tag == IGNORE)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user