metadata: translate "----" to "Unknown" in lens identification

(cherry picked from commit 9b0dce535c7eeda2d20c0ef1fa342b00238a48a1)
This commit is contained in:
Alberto Griggio
2019-07-07 18:00:24 +02:00
committed by Lawrence Lee
parent b01b0fbef0
commit 0e019b745b

View File

@@ -265,7 +265,7 @@ FramesData::FramesData(const Glib::ustring &fname) :
if (lens.empty()) {
lens = "Unknown";
}
if (lens.empty()) {
if (lens.empty() || lens.find_first_not_of('-') == std::string::npos) {
lens = "Unknown";
}