changeset 713:62f4f948ff01 pyntnclick

Fix bug with zooms and images
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 05 Aug 2012 15:02:26 +0200
parents f33dd2093f77
children 9c1cb8a8bc1c
files pyntnclick/tools/rect_drawer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pyntnclick/tools/rect_drawer.py	Sun Aug 05 14:55:48 2012 +0200
+++ b/pyntnclick/tools/rect_drawer.py	Sun Aug 05 15:02:26 2012 +0200
@@ -511,7 +511,7 @@
             else:
                 cand = None
                 for image in self.images:
-                    if image.rect.collidepoint(ev.pos):
+                    if image.rect.collidepoint(pos):
                         cand = image
                         break
                 if cand: