diff --git a/utils/resedit/space.py b/utils/resedit/space.py index b4528b8..66e42c6 100644 --- a/utils/resedit/space.py +++ b/utils/resedit/space.py @@ -228,8 +228,8 @@ class space: wx, wy, ww, wh = self.__swidget("draSpace").get_allocation() - mx = x - (self.x*self.zoom + ww/2) - my = y - (self.y*self.zoom + wh/2) + mx = (x - (self.x*self.zoom + ww/2))/self.zoom + my = (y - (self.y*self.zoom + wh/2))/self.zoom # Modify the current position. if event.button == 1 and self.__swidget("butReposition").get_active() and self.cur_system != "": @@ -269,8 +269,8 @@ class space: wx, wy, ww, wh = self.__swidget("draSpace").get_allocation() - mx = x - (self.x*self.zoom + ww/2) - my = y - (self.y*self.zoom + wh/2) + mx = (x - (self.x*self.zoom + ww/2))/self.zoom + my = (y - (self.y*self.zoom + wh/2))/self.zoom self.__swidget("labCurPos").set_text("%d%d" % (mx, my)) diff --git a/utils/resedit/space.pyc b/utils/resedit/space.pyc index ce2bc56..2f26820 100644 Binary files a/utils/resedit/space.pyc and b/utils/resedit/space.pyc differ