mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
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
This commit is contained in:
parent
a748aab0ed
commit
ac70bd3503
@ -977,7 +977,7 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout,
|
|||||||
gint extra;
|
gint extra;
|
||||||
gint n_extra_widgets = 0; /* Number of widgets that receive 1 extra px */
|
gint n_extra_widgets = 0; /* Number of widgets that receive 1 extra px */
|
||||||
gint x = 0, y = 0, i;
|
gint x = 0, y = 0, i;
|
||||||
gint child_size;
|
gfloat child_size;
|
||||||
|
|
||||||
count_expand_children (layout, container, &nvis_children, &nexpand_children);
|
count_expand_children (layout, container, &nvis_children, &nexpand_children);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user