From d9a0fabd1a9d0b0bd35a7f743d3f973af4e0ab1f Mon Sep 17 00:00:00 2001 From: mik854e Date: Thu, 11 Jul 2013 15:28:56 -0400 Subject: [PATCH] Fix selection at fixed aspect ratio. Aspect ratio was not honored if mouse pointer moved away from a square selection corner. The removed line gets executed in the caller for selection with no aspect ratio. --- chaco/tools/better_selecting_zoom.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/chaco/tools/better_selecting_zoom.py b/chaco/tools/better_selecting_zoom.py index 1153d7fee..2a258e494 100644 --- a/chaco/tools/better_selecting_zoom.py +++ b/chaco/tools/better_selecting_zoom.py @@ -327,8 +327,6 @@ def _end_select(self, event): """ Ends selection of the zoom region, adds the new zoom range to the zoom stack, and does the zoom. """ - self._screen_end = (event.x, event.y) - start = numpy.array(self._screen_start) end = numpy.array(self._screen_end)