Don't replace focal_len from Exif by focal_len from Makernotes is Makernotes focal_len is 0

This commit is contained in:
Morgan Hardwood 2015-08-21 11:01:03 +02:00
parent 4198ac1083
commit b3a12b699a

View File

@ -406,7 +406,10 @@ void ImageData::extractInfo ()
rtexif::Tag* flt = mnote->getTagP ("LensInfo/FocalLength");
if (flt) {
focal_len = flt->toDouble ();
// Don't replace Exif focal_len if Makernotes focal_len is 0
if (flt->toDouble() > 0) {
focal_len = flt->toDouble ();
}
} else if ((flt = mnote->getTagP ("FocalLength"))) {
rtexif::Tag* flt = mnote->getTag ("FocalLength");
focal_len = flt->toDouble ();