From 9ffffd25c78edf6dbd7837f087ae392ab6e2c60f Mon Sep 17 00:00:00 2001
From: Carlos Garnacho <carlos@lanedo.com>
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
---
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 556c98b..ae7c188 100644
a
|
b
|
sugar_touch_controller_get_center (SugarTouchController *controller, |
264 | 264 | x1 = MIN (x1, point->x); |
265 | 265 | y1 = MIN (y1, point->y); |
266 | 266 | x2 = MAX (x2, point->x); |
267 | | y2 = MAX (y2, point->x); |
| 267 | y2 = MAX (y2, point->y); |
268 | 268 | } |
269 | 269 | |
270 | 270 | if (center_x) |