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