[clutter/clutter-1.14] box-layout: Fix floating point truncation when calculating a child's size
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.14] box-layout: Fix floating point truncation when calculating a child's size
- Date: Thu, 21 Nov 2013 00:10:17 +0000 (UTC)
commit 3631ad44144985d62f7a9cd57e9be8c71b5157d0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Sep 9 17:54:38 2013 -0400
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>
clutter/clutter-box-layout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-box-layout.c b/clutter/clutter-box-layout.c
index a87b32b..19d9fb3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]