fix division by zero random crash for unknown reason, now will get black image instead

This commit is contained in:
Andrey Skvortsov
2010-09-21 21:20:50 -07:00
parent 34cc3e3dee
commit 7e7ce797e8

View File

@@ -39,7 +39,7 @@ extern const Settings* settings;
void ImProcFunctions::lab2rgb (LabImage* lab, Image8* image) {
if (chroma_scale == 0)
throw "Division by zero exception";
return;
if (monitorTransform) {
int ix = 0;