From 7d7d235729d03cb8699e3fd5bab8f1bb0c823713 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Thu, 27 Sep 2007 22:30:58 +0000 Subject: [PATCH] 2007-09-27 Matthew Allum * tests/test-scale.c: Fix out of about array addressing (#522, Tommi Komulainen) --- ChangeLog | 5 +++++ tests/test-scale.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 27b0e7a0f..c53869159 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-27 Matthew Allum + + * tests/test-scale.c: + Fix out of about array addressing (#522, Tommi Komulainen) + 2007-09-27 Matthew Allum * clutter/clutter-clone-texture.c: diff --git a/tests/test-scale.c b/tests/test-scale.c index 25947458c..c46e66c59 100644 --- a/tests/test-scale.c +++ b/tests/test-scale.c @@ -22,7 +22,7 @@ on_timeline_completed (ClutterTimeline *cluttertimeline, { ClutterBehaviourScale *behave = CLUTTER_BEHAVIOUR_SCALE(data); - if (++gindex > G_N_ELEMENTS(gravitys)) + if (++gindex >= G_N_ELEMENTS(gravitys)) gindex = 0; g_object_set (behave, "scale-gravity", gravitys[gindex], NULL);