diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 3241e93e9..a2e5ab378 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -12235,7 +12235,8 @@ void ImProcFunctions::Lab_Local( const int bfh = yend - ystart; const int bfw = xend - xstart; - if (bfw >= mSP && bfh >= mSP) { + if (bfw >= mDEN && bfh >= mDEN) { + // printf("OK TM\n"); array2D buflight(bfw, bfh); JaggedArray bufchro(bfw, bfh); std::unique_ptr bufgb(new LabImage(bfw, bfh));