gestures: Fix silly typo on get_center() implementation

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

Signed-off-by: Carlos Garnacho <[email protected]>
Acked-by: Simon Schampijer <[email protected]>
Tested-by: Manuel Kaufmann <[email protected]>
This commit is contained in:
Carlos Garnacho
2012-10-22 12:44:20 +02:00
committed by Simon Schampijer
parent a2d2c79d5d
commit 5ce0273900
@@ -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)