Skip to content

Commit

Permalink
wxGUI/g.gui.psmap: fix move point object error message (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and neteler committed Oct 22, 2020
1 parent a090b3a commit f568b2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/wxpython/psmap/frame.py
Expand Up @@ -1965,7 +1965,9 @@ def RecalculatePosition(self, ids):
rect = self.pdcObj.GetIdBounds(id)
self.instruction[id]['rect'] = self.CanvasPaperCoordinates(
rect=rect, canvasToPaper=True)
rect.OffsetXY(rect.GetWidth() / 2, rect.GetHeight() / 2)
rect.Offset(
dx=rect.GetWidth() / 2, dy=rect.GetHeight() / 2,
)
self.instruction[id]['where'] = self.CanvasPaperCoordinates(
rect=rect, canvasToPaper=True)[: 2]
self.RecalculateEN()
Expand Down

0 comments on commit f568b2d

Please sign in to comment.