From ac70bd3503ee7adc9bf6938353e25e81e852bfaf Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 9 Sep 2013 17:54:38 -0400 Subject: [PATCH] box-layout: Fix floating point truncation when calculating a child's size The child size is a float, not an int. https://bugzilla.gnome.org/show_bug.cgi?id=707808 --- clutter/clutter-box-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c index 958f26db2..82ff6f05f 100644 --- a/clutter/clutter-box-layout.c +++ b/clutter/clutter-box-layout.c @@ -977,7 +977,7 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout, gint extra; gint n_extra_widgets = 0; /* Number of widgets that receive 1 extra px */ gint x = 0, y = 0, i; - gint child_size; + gfloat child_size; count_expand_children (layout, container, &nvis_children, &nexpand_children);