From 8316ec85f500107eccb0de5d9d84abc6e8044e91 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 10 Jun 2017 07:52:01 -0400 Subject: [PATCH] center box: Fix size allocation This missing pair of parens was causing expanding children to overlap. --- gtk/gtkcenterbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcenterbox.c b/gtk/gtkcenterbox.c index 390e68319b..f91f0d9782 100644 --- a/gtk/gtkcenterbox.c +++ b/gtk/gtkcenterbox.c @@ -201,7 +201,7 @@ gtk_center_box_distribute (GtkCenterBox *self, start_size = center_pos; if (end_expand) - end_size = size - center_pos + center_size; + end_size = size - (center_pos + center_size); } else {