From 7e7ce797e8533d3a49d8092306ae82f4ec2a35a4 Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Tue, 21 Sep 2010 21:20:50 -0700 Subject: [PATCH] fix division by zero random crash for unknown reason, now will get black image instead --- rtengine/iplab2rgb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/iplab2rgb.cc b/rtengine/iplab2rgb.cc index c03c346f4..cf94f25e7 100644 --- a/rtengine/iplab2rgb.cc +++ b/rtengine/iplab2rgb.cc @@ -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;