mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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:
parent
23cc1e9528
commit
bdd64dc055
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user