align-constraint: Fix typo in the vertical align

We're clamping the x1 coordinate to the nearest pixel, instead of doing
so for the y1 coordinate.
This commit is contained in:
Emmanuele Bassi 2011-04-01 15:36:22 +01:00
parent 524eb23eb7
commit e368538ae0

View File

@ -144,7 +144,7 @@ clutter_align_constraint_update_allocation (ClutterConstraint *constraint,
actor_height = clutter_actor_box_get_height (allocation);
allocation->y1 = ((source_height - actor_height) * align->factor)
+ source_y;
allocation->x1 = floorf (allocation->x1 + 0.5);
allocation->y1 = floorf (allocation->y1 + 0.5);
allocation->y2 = allocation->y1 + actor_height;
break;