diff --git a/rtengine/ipsharpen.cc b/rtengine/ipsharpen.cc index c63930fc2..60c066967 100644 --- a/rtengine/ipsharpen.cc +++ b/rtengine/ipsharpen.cc @@ -314,7 +314,8 @@ void ImProcFunctions::MLsharpen (LabImage* lab) { float templab; int iii,kkk; width2 = 2*width; - const float epsil=0.001f;//prevent divide by zero + const float epsil=0.01f;//prevent divide by zero + const float eps2=0.001f;//prevent divide by zero float amount; amount = params->sharpenEdge.amount / 100.0f; if (amount < 0.00001f) @@ -353,12 +354,12 @@ void ImProcFunctions::MLsharpen (LabImage* lab) { for(j=2; j