actor: Use box origin instead of direct access

This commit is contained in:
Emmanuele Bassi 2010-08-11 11:39:24 +01:00
parent 5e1d40c07b
commit 59a9786942

View File

@ -10150,14 +10150,14 @@ clutter_actor_allocate_align_fill (ClutterActor *self,
if (!x_fill) if (!x_fill)
{ {
allocation.x1 = box->x1 allocation.x1 = x_offset
+ ((available_width - child_width) * x_align); + ((available_width - child_width) * x_align);
allocation.x2 = allocation.x1 + child_width; allocation.x2 = allocation.x1 + child_width;
} }
if (!y_fill) if (!y_fill)
{ {
allocation.y1 = box->y1 allocation.y1 = y_offset
+ ((available_height - child_height) * y_align); + ((available_height - child_height) * y_align);
allocation.y2 = allocation.y1 + child_height; allocation.y2 = allocation.y1 + child_height;
} }