Fixed count of makernote tag. Fixes bug #615.

This commit is contained in:
Andreas Huggel 2009-02-03 15:13:13 +00:00
parent 3bd8cde75b
commit fcd94e2eee

View File

@ -688,9 +688,13 @@ namespace Exiv2 {
uint32_t TiffMnEntry::doCount() const
{
// Count of tag Exif.Photo.MakerNote is the size of the Makernote in bytes
if (!mn_) {
return TiffEntryBase::doCount();
}
// Count of IFD makernote in tag Exif.Photo.MakerNote is the size of the
// Makernote in bytes
assert(tiffType() == ttUndefined);
return size();
return mn_->size();
}
uint32_t TiffArrayEntry::doCount() const