[gtk+/wip/spinner: 1/3] csseasevalue: fix wrong priority in steps easing transformation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/spinner: 1/3] csseasevalue: fix wrong priority in steps easing transformation
- Date: Mon, 10 Sep 2012 17:18:17 +0000 (UTC)
commit dd2134eae452561ba771a7beed1fc16b1a41c06a
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]