Ticket #4034: 0001-gestures-Fix-silly-typo-on-get_center-implementation.patch

File 0001-gestures-Fix-silly-typo-on-get_center-implementation.patch, 988 bytes (added by humitos, 12 years ago)

Patch for sugar-toolkit-gtk3

  • src/sugar3/event-controller/sugar-touch-controller.c

    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, 
    264264      x1 = MIN (x1, point->x);
    265265      y1 = MIN (y1, point->y);
    266266      x2 = MAX (x2, point->x);
    267       y2 = MAX (y2, point->x);
     267      y2 = MAX (y2, point->y);
    268268    }
    269269
    270270  if (center_x)