color propagation: fix segfault whan there is nothing to reconstruct

This commit is contained in:
Ingo Weyrich
2019-07-09 19:40:08 +02:00
parent c56106beae
commit 0b1ba37c75

View File

@@ -406,6 +406,10 @@ void RawImageSource::HLRecovery_inpaint (float** red, float** green, float** blu
}
}
if (minx > maxx || miny > maxy) { // nothing to reconstruct
return;
}
if (plistener) {
progress += 0.05;
plistener->setProgress(progress);