app: handle negative fractions correctly in spinscale
This commit is contained in:

committed by
Michael Natterer

parent
93864e3082
commit
8994acc6a8
@ -464,6 +464,7 @@ gimp_spin_scale_change_value (GtkWidget *widget,
|
|||||||
gdouble fraction;
|
gdouble fraction;
|
||||||
|
|
||||||
fraction = x / (gdouble) width;
|
fraction = x / (gdouble) width;
|
||||||
|
if (fraction > 0.0)
|
||||||
fraction = pow (fraction, private->gamma);
|
fraction = pow (fraction, private->gamma);
|
||||||
|
|
||||||
value = fraction * (upper - lower) + lower;
|
value = fraction * (upper - lower) + lower;
|
||||||
|
Reference in New Issue
Block a user