bug fixes by heckflosse

This commit is contained in:
Alberto Griggio 2018-01-31 21:24:56 +01:00
parent 74e31dff45
commit 7dd598d9b7
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ void RawImageSource::getAutoMatchedToneCurve(std::vector<double> &outCurve)
histMatchingCache = outCurve;
return;
}
skip = LIM(5, skip * fh / h, 10); // adjust the skip factor -- the larger the thumbnail, the less we should skip to get a good match
skip = LIM(skip * fh / h, 6, 10); // adjust the skip factor -- the larger the thumbnail, the less we should skip to get a good match
source.reset(thumb->quickProcessImage(neutral, fh / skip, TI_Nearest));
if (settings->verbose) {

View File

@ -466,8 +466,8 @@ Thumbnail* Thumbnail::loadFromRaw (const Glib::ustring& fname, RawMetaDataLocati
skip--;
}
if (skip < 1) {
skip = 1;
if (skip < 2) {
skip = 2;
}
int hskip = skip, vskip = skip;