[ocrfeeder] Fix selection of multiple areas
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix selection of multiple areas
- Date: Sat, 19 Mar 2011 16:46:29 +0000 (UTC)
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]