mirror of https://github.com/GNOME/gimp.git
app: fix gimp_operation_levels_map_input() for negative values
... when gamma != 1
This commit is contained in:
parent
4f8a5e02d7
commit
dc6ca2cf9a
|
@ -202,7 +202,7 @@ gimp_operation_levels_map_input (GimpLevelsConfig *config,
|
|||
else
|
||||
value = (value - config->low_input[channel]);
|
||||
|
||||
if (config->gamma[channel] != 0.0)
|
||||
if (config->gamma[channel] != 0.0 && value > 0.0)
|
||||
value = pow (value, 1.0 / config->gamma[channel]);
|
||||
|
||||
return value;
|
||||
|
|
Loading…
Reference in New Issue