csseasevalue: fix wrong priority in steps easing transformation

We need to add parentheses around the ternary operator, or it will be
applied to the whole expression.
This commit is contained in:
Cosimo Cecchi 2012-09-10 13:10:47 -04:00 committed by Benjamin Otte
parent 23cc1e9528
commit bdd64dc055

View File

@ -370,7 +370,7 @@ _gtk_css_ease_value_transform (const GtkCssValue *ease,
}
case GTK_CSS_EASE_STEPS:
progress *= ease->u.steps.steps;
progress = floor (progress) + ease->u.steps.start ? 0 : 1;
progress = floor (progress) + (ease->u.steps.start ? 0 : 1);
return progress / ease->u.steps.steps;
default:
g_assert_not_reached ();