Fix corrupted Exif MakeNotes.

On behalf of panlop, see issue 615.
This commit is contained in:
Philip Rinn
2012-06-26 00:11:33 +02:00
parent 128c6dee7b
commit 28966315b9

View File

@@ -902,7 +902,7 @@ int Tag::calculateSize () {
size += valuesize + (valuesize%2); // we align tags to even byte positions
if (makerNoteKind!=NOMK)
count = directory[0]->calculateSize ();
count = directory[0]->calculateSize () / getTypeSize(type);
if (makerNoteKind==NIKON3 || makerNoteKind==OLYMPUS2 || makerNoteKind==FUJI)
size += valuesize;