diff options
Diffstat (limited to 'clutter/clutter-box-layout.c')
-rw-r--r-- | clutter/clutter-box-layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c index 9e063864f..937bad3a3 100644 --- a/clutter/clutter-box-layout.c +++ b/clutter/clutter-box-layout.c @@ -1033,7 +1033,7 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout, x = box->x1; } - for (l = children, i = 0; l != NULL; l = l->next, i += 1) + for (l = children, i = 0; l != NULL; l = l->next) { ClutterLayoutMeta *meta; ClutterBoxChild *box_child; @@ -1141,6 +1141,8 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout, child, &child_allocation, flags); + + i++; } g_list_free (children); |