color propagation: fix segfault whan there is nothing to reconstruct
This commit is contained in:
@@ -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) {
|
if (plistener) {
|
||||||
progress += 0.05;
|
progress += 0.05;
|
||||||
plistener->setProgress(progress);
|
plistener->setProgress(progress);
|
||||||
|
Reference in New Issue
Block a user