Skip to content

Commit

Permalink
wxGUI/nviz: fix failed map centring on mac with pre-wx4.1 (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Aug 12, 2020
1 parent ec0fb32 commit 4a972d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gui/wxpython/nviz/mapwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ def _warningDepthBuffer(self):
"and restart GUI.")
GMessage(message)

def GetContentScaleFactor(self):
if sys.platform == "darwin" and not CheckWxVersion(version=[4, 1, 0]):
return 1
return super().GetContentScaleFactor()

def InitFly(self):
"""Initialize fly through dictionary"""
fly = {'interval': 10, # interval for timerFly
Expand Down

0 comments on commit 4a972d0

Please sign in to comment.