mirror of https://github.com/GNOME/gimp.git
app: handle negative fractions correctly in spinscale
This commit is contained in:
parent
93864e3082
commit
8994acc6a8
|
@ -464,7 +464,8 @@ gimp_spin_scale_change_value (GtkWidget *widget,
|
|||
gdouble fraction;
|
||||
|
||||
fraction = x / (gdouble) width;
|
||||
fraction = pow (fraction, private->gamma);
|
||||
if (fraction > 0.0)
|
||||
fraction = pow (fraction, private->gamma);
|
||||
|
||||
value = fraction * (upper - lower) + lower;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue