summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-09-09 17:54:38 -0400
committerEmmanuele Bassi <ebassi@gnome.org>2013-11-20 23:16:34 +0000
commit3631ad44144985d62f7a9cd57e9be8c71b5157d0 (patch)
tree0b41694fd7596f655c6459289eddcd522ca300b5
parent3e02990dbe56b67603fac20b9cb27b6989688268 (diff)
downloadclutter-3631ad44144985d62f7a9cd57e9be8c71b5157d0.tar.gz
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 (cherry picked from commit ac70bd3503ee7adc9bf6938353e25e81e852bfaf) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
-rw-r--r--clutter/clutter-box-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c
index a87b32bf2..19d9fb379 100644
--- a/clutter/clutter-box-layout.c
+++ b/clutter/clutter-box-layout.c
@@ -979,7 +979,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);