app: fix gimp_operation_levels_map_input() for negative values

... when gamma != 1
This commit is contained in:
Ell 2019-04-19 05:42:09 -04:00
parent 4f8a5e02d7
commit dc6ca2cf9a
1 changed files with 1 additions and 1 deletions

View File

@ -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;