diff --git a/rtengine/histmatching.cc b/rtengine/histmatching.cc index aaeada81a..6f1387416 100644 --- a/rtengine/histmatching.cc +++ b/rtengine/histmatching.cc @@ -180,9 +180,9 @@ void RawImageSource::getAutoMatchedToneCurve(std::vector &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 };