fix division by zero random crash for unknown reason, now will get black image instead
This commit is contained in:
@@ -39,7 +39,7 @@ extern const Settings* settings;
|
|||||||
void ImProcFunctions::lab2rgb (LabImage* lab, Image8* image) {
|
void ImProcFunctions::lab2rgb (LabImage* lab, Image8* image) {
|
||||||
|
|
||||||
if (chroma_scale == 0)
|
if (chroma_scale == 0)
|
||||||
throw "Division by zero exception";
|
return;
|
||||||
|
|
||||||
if (monitorTransform) {
|
if (monitorTransform) {
|
||||||
int ix = 0;
|
int ix = 0;
|
||||||
|
Reference in New Issue
Block a user