Fixed random color dots in dark areas using some Canon DCP profiles

see issue 1406
This commit is contained in:
Oliver Duis
2012-06-10 21:01:17 +02:00
parent 79527e99fb
commit ef21ae5e8d
5 changed files with 8 additions and 79 deletions

View File

@@ -934,7 +934,7 @@ fclose(f);*/
double var_Max = max(var_R,var_G,var_B);
double del_Max = var_Max - var_Min;
v = var_Max;
if (fabs(del_Max)<0.00001) {
if (del_Max<0.00001 && del_Max>-0.00001) { // no fabs, slow!
h = 0;
s = 0;
}