tweaked lens identification for Canon RF cameras

(cherry picked from commit a7e4ef71f9b400ffd53532c91d2ecb4e17e5ce2a)
This commit is contained in:
Alberto Griggio
2022-04-13 05:54:30 -07:00
committed by Lawrence Lee
parent 9fd136c2f3
commit 00c13bf2af

View File

@@ -284,9 +284,6 @@ FramesData::FramesData(const Glib::ustring &fname) :
auto p = pos;
if (find_exif_tag("Exif.CanonFi.RFLensType") && find_exif_tag("Exif.Canon.LensModel")) {
lens = validateUft8(pos->print(&exif)); // validateUft8 (#5923) still needed?
if (Glib::ustring(lens).lowercase().find("canon") == Glib::ustring::npos) {
lens = std::string("Canon ") + lens;
}
} else if (p->count() == 1 && lens == std::to_string(p->toLong()) &&
find_exif_tag("Exif.Photo.LensModel")) {
lens = validateUft8(p->print(&exif)); // validateUft8 (#5923) still needed?