app: kill more clamping in a levels utility function

This commit is contained in:
Michael Natterer 2012-05-01 13:24:46 +02:00
parent b9db13e4fc
commit 58324ab239
1 changed files with 1 additions and 5 deletions

View File

@ -179,12 +179,8 @@ gimp_operation_levels_map_input (GimpLevelsConfig *config,
else
value = (value - config->low_input[channel]);
value = CLAMP (value, 0.0, 1.0);
if (config->gamma[channel] != 0.0)
{
value = pow (value, 1.0 / config->gamma[channel]);
}
value = pow (value, 1.0 / config->gamma[channel]);
return value;
}