lensfun: fixed bug in auto-matching of some fixed-lens cameras (e.g. nikon coolpix)
This commit is contained in:
@@ -287,7 +287,7 @@ LFLens LFDatabase::findLens(const LFCamera &camera, const Glib::ustring &name) c
|
|||||||
LFLens ret;
|
LFLens ret;
|
||||||
if (data_) {
|
if (data_) {
|
||||||
Glib::ustring lname = name;
|
Glib::ustring lname = name;
|
||||||
bool stdlens = camera.ok() && (name.empty() || name.find("Unknown ") == 0);
|
bool stdlens = camera.ok() && (name.empty() || name.find("Unknown") == 0);
|
||||||
if (stdlens) {
|
if (stdlens) {
|
||||||
lname = camera.getModel(); // "Standard"
|
lname = camera.getModel(); // "Standard"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user