From 5ce027390081b93b9882d31ffd579956b1220781 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 18 Oct 2012 14:50:15 +0200 Subject: [PATCH] gestures: Fix silly typo on get_center() implementation Don't mix up coordinates when calculating the bounding box center Signed-off-by: Carlos Garnacho Acked-by: Simon Schampijer Tested-by: Manuel Kaufmann --- src/sugar3/event-controller/sugar-touch-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar3/event-controller/sugar-touch-controller.c b/src/sugar3/event-controller/sugar-touch-controller.c index 556c98bb..ae7c188e 100644 --- a/src/sugar3/event-controller/sugar-touch-controller.c +++ b/src/sugar3/event-controller/sugar-touch-controller.c @@ -264,7 +264,7 @@ sugar_touch_controller_get_center (SugarTouchController *controller, x1 = MIN (x1, point->x); y1 = MIN (y1, point->y); x2 = MAX (x2, point->x); - y2 = MAX (y2, point->x); + y2 = MAX (y2, point->y); } if (center_x)