AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

1998.06.10 15:56 "TIFFVGetField fix", by Michael O'Rourke

Sam,

I'd like to suggest a fix to TIFFVGetField in tif_dir.c. I think the following code should be inserted before the return statment:

    if (fip && (fip->field_bit == FIELD_IGNORE))
        assert(0);

If I am asking for a tag in my code and it is an 'ignored' tag, I think it is really useful to _immediately_ know that rather than wasting time debugging only to find that the tag was deemed 'ignorable'. I think this would be really useful.

Michael.