diff options
author | Carlos Garnacho <carlos@lanedo.com> | 2012-10-18 12:50:15 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-10-22 10:44:20 (GMT) |
commit | 5ce027390081b93b9882d31ffd579956b1220781 (patch) | |
tree | 045374e791ee4c1370942e5d21149651b06c2ebf | |
parent | a2d2c79d5dffb2d14ea0609e8460aad34b6f20b3 (diff) |
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>
-rw-r--r-- | src/sugar3/event-controller/sugar-touch-controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
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/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) |