Skip to content

Commit

Permalink
wxGUI/psmap: fix wx.adv.PseudoDC() class DrawRotatedText() method x, y
Browse files Browse the repository at this point in the history
param arg int type
  • Loading branch information
tmszi committed Sep 26, 2023
1 parent f58030d commit 9601446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/psmap/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2526,7 +2526,7 @@ def DrawRotText(self, pdc, drawId, textDict, coords, bounds):
if rot == 0:
pdc.DrawLabel(text=textDict["text"], rect=bounds)
else:
pdc.DrawRotatedText(textDict["text"], coords[0], coords[1], rot)
pdc.DrawRotatedText(textDict["text"], int(coords[0]), int(coords[1]), rot)

pdc.SetIdBounds(drawId, Rect(*bounds))
self.Refresh()
Expand Down

0 comments on commit 9601446

Please sign in to comment.