Fixed bug (typo) in LCP-based CA correction (now reenabled)

This commit is contained in:
Alberto Griggio
2017-11-16 21:22:17 +01:00
parent 652044e863
commit 339c794359
2 changed files with 3 additions and 4 deletions

View File

@@ -1023,7 +1023,7 @@ rtengine::LCPMapper::LCPMapper(
bool rtengine::LCPMapper::isCACorrectionAvailable() const bool rtengine::LCPMapper::isCACorrectionAvailable() const
{ {
return false /*enableCA*/; // agriggio TODO -- this is currently broken return enableCA;
} }
void rtengine::LCPMapper::correctDistortion(double &x, double &y, int cx, int cy, double scale) const void rtengine::LCPMapper::correctDistortion(double &x, double &y, int cx, int cy, double scale) const
@@ -1128,7 +1128,7 @@ void rtengine::LCPMapper::correctCA(double& x, double& y, int cx, int cy, int ch
} }
x -= cx; x -= cx;
x -= cy; y -= cy;
} }
SSEFUNCTION void rtengine::LCPMapper::processVignetteLine(int width, int y, float* line) const SSEFUNCTION void rtengine::LCPMapper::processVignetteLine(int width, int y, float* line) const

View File

@@ -380,8 +380,7 @@ void LensProfilePanel::updateDisabled(bool enable)
{ {
ckbUseDist->set_sensitive(enable); ckbUseDist->set_sensitive(enable);
ckbUseVign->set_sensitive(enable && isRaw); ckbUseVign->set_sensitive(enable && isRaw);
// agriggio TODO -- CA correction via LCP is currently broken ckbUseCA->set_sensitive(enable && allowFocusDep);
ckbUseCA->set_sensitive(false);//enable && allowFocusDep);
} }
void LensProfilePanel::setBatchMode(bool yes) void LensProfilePanel::setBatchMode(bool yes)