2007-09-27 Matthew Allum <mallum@openedhand.com>
authorMatthew Allum <mallum@openedhand.com>
Thu, 27 Sep 2007 22:30:58 +0000 (22:30 +0000)
committerMatthew Allum <mallum@openedhand.com>
Thu, 27 Sep 2007 22:30:58 +0000 (22:30 +0000)
        * tests/test-scale.c:
        Fix out of about array addressing (#522, Tommi Komulainen)

ChangeLog
tests/test-scale.c

index 27b0e7a..c538691 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2007-09-27  Matthew Allum  <mallum@openedhand.com>
 
+       * tests/test-scale.c:
+       Fix out of about array addressing (#522, Tommi Komulainen)
+
+2007-09-27  Matthew Allum  <mallum@openedhand.com>
+
        * clutter/clutter-clone-texture.c:
        * clutter/clutter-rectangle.c:
        Include "config.h" in all c files (#524, Tommi Komulainen)
index 2594745..c46e66c 100644 (file)
@@ -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);