diff options
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 1ff75ebb33..f508173430 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -1164,7 +1164,7 @@ gtk_box_compute_size_for_orientation (GtkBox *box, gint largest_child = 0, largest_natural = 0; for (children = private->children; children != NULL; - children = children->next, nvis_children++) + children = children->next) { GtkBoxChild *child = children->data; @@ -1190,6 +1190,8 @@ gtk_box_compute_size_for_orientation (GtkBox *box, required_size += child_size; required_natural += child_natural; + + nvis_children += 1; } } |