Shadows from S/H broken on small JPEG files, Issue 2408

This commit is contained in:
Ingo
2014-06-11 17:35:34 +02:00
parent f4a9fbf2e7
commit 0b57619f62
2 changed files with 5 additions and 4 deletions

View File

@@ -190,7 +190,8 @@ void Crop::update (int todo) {
double shradius = params.sh.radius;
if (!params.sh.hq) shradius *= radius / 1800.0;
cshmap->update (baseCrop, shradius, parent->ipf.lumimul, params.sh.hq, skip);
cshmap->forceStat (parent->shmap->max_f, parent->shmap->min_f, parent->shmap->avg);
if(parent->shmap->min_f < 65535.f) // don't call forceStat with wrong values
cshmap->forceStat (parent->shmap->max_f, parent->shmap->min_f, parent->shmap->avg);
}
// shadows & highlights & tone curve & convert to cielab