Lens data in Exif shows incorrect information for manual focus Nikon lenses, fixes #4485
This commit is contained in:
parent
681361c091
commit
302a2f217e
@ -23,7 +23,6 @@
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
|
||||
#include "rtexif.h"
|
||||
|
||||
using namespace std;
|
||||
@ -543,7 +542,16 @@ public:
|
||||
|
||||
if (r != lenses.end()) {
|
||||
if (r == lenses.begin() && EffectiveMaxApertureString != "") { // first entry is for unchipped lenses
|
||||
ld << "Lens = Unknown $FL$mm f/" << EffectiveMaxApertureString;
|
||||
Tag *FLTag = t->getParent()->getRoot()->findTag ("FocalLength");
|
||||
ld << "Lens = MF ";
|
||||
|
||||
if(FLTag) {
|
||||
ld << FLTag->valueToString () << "mm";
|
||||
} else {
|
||||
ld << "0mm";
|
||||
}
|
||||
|
||||
ld << " f/" << EffectiveMaxApertureString;
|
||||
} else {
|
||||
ld << "Lens = " << r->second;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user