Crash in 'Highlight Reconstruction Colour Propagation', Issue 2360

This commit is contained in:
Ingo
2014-05-26 11:53:59 +02:00
parent b4751b9997
commit 3646fe2626

View File

@@ -724,6 +724,10 @@ void RawImageSource :: HLRecovery_inpaint (float** red, float** green, float** b
clipfix[2] += dirwt*hilite_dir[dir*4+2][i1][j1]/(hilite_dir[dir*4+3][i1][j1]+0.00001);
}
}
if(totwt == 0.f)
continue;
clipfix[0] /= totwt;
clipfix[1] /= totwt;
clipfix[2] /= totwt;