[Fix] resedit: Planet selection bug whilst zoomed into map.
This commit is contained in:
parent
e0f8aae668
commit
9deddc9cd9
@ -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.
Loading…
Reference in New Issue
Block a user