[ocrfeeder] Fix selection of multiple areas



commit e8e8597b7b942ced46f787c05a61822a4e644db9
Author: Joaquim Rocha <jrocha igalia com>
Date:   Sat Mar 19 17:44:59 2011 +0100

    Fix selection of multiple areas

 src/ocrfeeder/studio/customWidgets.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ocrfeeder/studio/customWidgets.py b/src/ocrfeeder/studio/customWidgets.py
index 6d0e6d3..851ea67 100644
--- a/src/ocrfeeder/studio/customWidgets.py
+++ b/src/ocrfeeder/studio/customWidgets.py
@@ -309,7 +309,7 @@ class SelectableBoxesArea(goocanvas.Canvas):
 
     def pressedWithinArea(self, item, target, event):
         deselected = False
-        if event.state != gtk.gdk.SHIFT_MASK:
+        if event.state & gtk.gdk.SHIFT_MASK == 0:
             self.deselectAreas()
         else:
             deselected = self.deselectArea(item)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]