histmatching: use the cache even when not in verbose mode

Fixes #4350 (thanks heckflosse!)
This commit is contained in:
Alberto Griggio
2018-02-01 13:50:41 +01:00
parent 77f9f52c3e
commit f3b5fc791e

View File

@@ -180,9 +180,9 @@ void RawImageSource::getAutoMatchedToneCurve(std::vector<double> &outCurve)
if (!histMatchingCache.empty()) {
if (settings->verbose) {
std::cout << "tone curve found in cache" << std::endl;
outCurve = histMatchingCache;
return;
}
outCurve = histMatchingCache;
return;
}
outCurve = { DCT_Linear };