profile lens correction: show a warning if the lens profile has a crop factor greater than the selected camera

This commit is contained in:
Alberto Griggio
2017-09-12 08:25:45 +02:00
parent 84984422c7
commit ea5f8c3beb
5 changed files with 50 additions and 0 deletions

View File

@@ -206,6 +206,16 @@ Glib::ustring LFLens::getLens() const
}
float LFLens::getCropFactor() const
{
if (data_) {
return data_->CropFactor;
} else {
return 0;
}
}
//-----------------------------------------------------------------------------
// LFDatabase
//-----------------------------------------------------------------------------