From 27b2e0080b2dcfe4ac1f84f701083170d7893f9e Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 17 Sep 2006 01:19:36 +0200 Subject: [PATCH] Remove brain dead -1 --- sugar/canvas/Grid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/canvas/Grid.py b/sugar/canvas/Grid.py index c6a0ae7e..3d586dd8 100644 --- a/sugar/canvas/Grid.py +++ b/sugar/canvas/Grid.py @@ -26,8 +26,8 @@ class Grid: def convert_from_screen(self, x, y): factor = Grid.COLS / gtk.gdk.screen_width() - grid_x = round(x * factor) - 1 - grid_y = round(y * factor) - 1 + grid_x = round(x * factor) + grid_y = round(y * factor) return [grid_x, grid_y]