[Fix] resedit: Planet selection bug whilst zoomed into map.

This commit is contained in:
Allanis 2013-04-16 12:53:29 +01:00
parent e0f8aae668
commit 9deddc9cd9
2 changed files with 4 additions and 4 deletions

View File

@ -228,8 +228,8 @@ class space:
wx, wy, ww, wh = self.__swidget("draSpace").get_allocation() wx, wy, ww, wh = self.__swidget("draSpace").get_allocation()
mx = x - (self.x*self.zoom + ww/2) mx = (x - (self.x*self.zoom + ww/2))/self.zoom
my = y - (self.y*self.zoom + wh/2) my = (y - (self.y*self.zoom + wh/2))/self.zoom
# Modify the current position. # Modify the current position.
if event.button == 1 and self.__swidget("butReposition").get_active() and self.cur_system != "": 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() wx, wy, ww, wh = self.__swidget("draSpace").get_allocation()
mx = x - (self.x*self.zoom + ww/2) mx = (x - (self.x*self.zoom + ww/2))/self.zoom
my = y - (self.y*self.zoom + wh/2) my = (y - (self.y*self.zoom + wh/2))/self.zoom
self.__swidget("labCurPos").set_text("%d%d" % (mx, my)) self.__swidget("labCurPos").set_text("%d%d" % (mx, my))

Binary file not shown.