Skip to content

Commit

Permalink
wxGUI/mapwin: fix saving the position of overlays after changing thei…
Browse files Browse the repository at this point in the history
…r position with the mouse pointer tool (#817)

See #815
  • Loading branch information
tmszi committed Jul 24, 2020
1 parent 1781132 commit 825e6a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/wxpython/mapwin/buffered.py
Expand Up @@ -200,7 +200,7 @@ def __init__(self, parent, giface, Map, properties,
self.Map.GetRenderMgr().renderDone.connect(self._updateMFinished)

# vars for handling mouse clicks
self.dragid = -1
self.dragid = None
self.lastpos = (0, 0)

# list for registration of graphics to draw
Expand Down Expand Up @@ -1556,7 +1556,7 @@ def OnLeftUp(self, event):
self._onLeftUp(event)

elif self.mouse['use'] == 'pointer':
if self.dragid and int(self.dragid) >= 0:
if self.dragid:
# end drag of overlay decoration
if self.overlays and self.dragid in self.overlays:
self.overlays[
Expand Down

0 comments on commit 825e6a5

Please sign in to comment.