box-layout: Fix RTL layout swapping with non-zero container offsets

https://bugzilla.gnome.org/show_bug.cgi?id=706450
This commit is contained in:
Jasper St. Pierre 2013-06-14 17:49:01 -04:00
parent fe2aa9237a
commit 05f56affe1

View File

@ -1217,10 +1217,8 @@ clutter_box_layout_allocate (ClutterLayoutManager *layout,
{
gfloat width = child_allocation.x2 - child_allocation.x1;
child_allocation.x1 = box->x2 - box->x1
- child_allocation.x1
- (child_allocation.x2 - child_allocation.x1);
child_allocation.x2 = child_allocation.x1 + width;
child_allocation.x2 = box->x1 + (box->x2 - child_allocation.x1);
child_allocation.x1 = child_allocation.x2 - width;
}
}