fixed off-by-one error leading to segfault

This commit is contained in:
Alberto Griggio
2017-11-16 17:35:21 +01:00
parent 2cdc5fc69a
commit 619b3e9c63

View File

@@ -750,8 +750,8 @@ void Crop::update (int todo)
if (need_cropping) {
Imagefloat *c = new Imagefloat(cropw, croph);
int oy = skips(cropy, skip);
int ox = skips(cropx, skip);
int oy = cropy / skip;
int ox = cropx / skip;
#ifdef _OPENMP
#pragma omp parallel for
#endif