#726: Tweak to make it select the correct primary image.

v0.27.3
Andreas Huggel 15 years ago
parent fc03156491
commit cdd6eb2765

@ -109,8 +109,10 @@ namespace Exiv2 {
ExifData::const_iterator md = exifData_.findKey(ExifKey(keys[i]));
// Is it the primary image?
if (md != exifData_.end() && md->count() > 0 && md->toLong() == 0) {
// Sometimes there is a JPEG primary image; that's not our first choice
groupName = md->groupName();
break;
std::string key = "Exif." + groupName + ".JPEGInterchangeFormat";
if (exifData_.findKey(ExifKey(key)) == exifData_.end()) break;
}
}
return groupName;

Loading…
Cancel
Save