From b8d802c12c78bf46a6e2ef528ce3885d0e36ee9e Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Thu, 4 Mar 2010 13:34:54 +0000 Subject: [PATCH] #684: Quickfix to prevent the assertion failure. --- src/tiffvisitor.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/tiffvisitor.cpp b/src/tiffvisitor.cpp index 199ad43b..cb589636 100644 --- a/src/tiffvisitor.cpp +++ b/src/tiffvisitor.cpp @@ -1250,6 +1250,17 @@ namespace Exiv2 { #endif return; } + // Todo: Don't use a hardcoded constant here + if (i == 4) { +#ifndef SUPPRESS_WARNINGS + std::cerr << "Warning: " + << "Directory " << tiffGroupName(object->group()) + << ", entry 0x" << std::setw(4) + << std::setfill('0') << std::hex << object->tag() + << ": Skipping sub-IFDs beyond the first four.\n"; +#endif + break; + } // If there are multiple dirs, group is incremented for each TiffComponent::AutoPtr td(new TiffDirectory(object->tag(), object->newGroup_ + i));