metadata: translate "----" to "Unknown" in lens identification
(cherry picked from commit 9b0dce535c7eeda2d20c0ef1fa342b00238a48a1)
This commit is contained in:
committed by
Lawrence Lee
parent
b01b0fbef0
commit
0e019b745b
@@ -265,7 +265,7 @@ FramesData::FramesData(const Glib::ustring &fname) :
|
|||||||
if (lens.empty()) {
|
if (lens.empty()) {
|
||||||
lens = "Unknown";
|
lens = "Unknown";
|
||||||
}
|
}
|
||||||
if (lens.empty()) {
|
if (lens.empty() || lens.find_first_not_of('-') == std::string::npos) {
|
||||||
lens = "Unknown";
|
lens = "Unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user