app: handle negative fractions correctly in spinscale

This commit is contained in:
Øyvind Kolås 2012-03-31 00:50:51 +01:00 committed by Michael Natterer
parent 93864e3082
commit 8994acc6a8
1 changed files with 2 additions and 1 deletions

View File

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