diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index f67770b38c..9fa7f32d40 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -890,11 +890,11 @@ gtk_box_size_allocate_with_center (GtkWidget *widget, { min_size[child->pack] += req->minimum_size + 2 * child->padding; nat_size[child->pack] += req->natural_size + 2 * child->padding; + + idx[child->pack] += 1; } req->data = child; - - idx[child->pack] += 1; } /* Determine size of center */