[gtk+] csseasevalue: fix wrong priority in steps easing transformation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] csseasevalue: fix wrong priority in steps easing transformation
- Date: Mon, 17 Sep 2012 19:15:58 +0000 (UTC)
commit bdd64dc0551d53aa4749218c41e6b21adebb87d6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Sep 10 13:10:47 2012 -0400
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.
gtk/gtkcsseasevalue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsseasevalue.c b/gtk/gtkcsseasevalue.c
index 19f979b..cea938f 100644
--- a/gtk/gtkcsseasevalue.c
+++ b/gtk/gtkcsseasevalue.c
@@ -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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]