app: remove clamping from GimpOperationLevels, it was at a fishy place anyway

This commit is contained in:
Michael Natterer
2012-04-30 20:35:27 +02:00
parent 28f70039ab
commit 49175a2d1b

View File

@ -93,13 +93,8 @@ gimp_operation_levels_map (gdouble value,
else
value = (value - low_input);
/* clamp to new black and white points */
value = CLAMP (value, 0.0, 1.0);
if (inv_gamma != 1.0)
{
value = pow ( value, inv_gamma);
}
value = pow (value, inv_gamma);
/* determine the output intensity */
if (high_output >= low_output)