disable vignetting or distortion correction checkboxes if the selected lensfun profile doesn't support them
Patch by heckflosse
This commit is contained in:
@@ -215,6 +215,24 @@ float LFLens::getCropFactor() const
|
||||
}
|
||||
}
|
||||
|
||||
bool LFLens::hasVignettingCorrection() const
|
||||
{
|
||||
if (data_) {
|
||||
return data_->CalibVignetting;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool LFLens::hasDistortionCorrection() const
|
||||
{
|
||||
if (data_) {
|
||||
return data_->CalibDistortion;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LFDatabase
|
||||
|
Reference in New Issue
Block a user