gestures: Fix silly typo on get_center() implementation

Don't mix up coordinates when calculating the bounding box center

Signed-off-by: Carlos Garnacho <carlos@lanedo.com>
Acked-by: Simon Schampijer <simon@laptop.org>
Tested-by: Manuel Kaufmann <humitos@gmail.com>
This commit is contained in:
Carlos Garnacho 2012-10-18 14:50:15 +02:00 committed by Simon Schampijer
parent a2d2c79d5d
commit 5ce0273900

View File

@ -264,7 +264,7 @@ sugar_touch_controller_get_center (SugarTouchController *controller,
x1 = MIN (x1, point->x); x1 = MIN (x1, point->x);
y1 = MIN (y1, point->y); y1 = MIN (y1, point->y);
x2 = MAX (x2, point->x); x2 = MAX (x2, point->x);
y2 = MAX (y2, point->x); y2 = MAX (y2, point->y);
} }
if (center_x) if (center_x)