From e368538ae04a8ae530955b7e853081093725234f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 1 Apr 2011 15:36:22 +0100 Subject: [PATCH] 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. --- clutter/clutter-align-constraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-align-constraint.c b/clutter/clutter-align-constraint.c index da35c9992..8ec342c06 100644 --- a/clutter/clutter-align-constraint.c +++ b/clutter/clutter-align-constraint.c @@ -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;