avoid assert in wxMac port, only change the font point size when we
are going to be using it in objects that need to draw text git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -649,11 +649,11 @@ class TickSet:
|
||||
a_tick = self.ticks[0]
|
||||
|
||||
size = a_tick.GetMaxSize(scale)
|
||||
self.font.SetPointSize(size)
|
||||
maxsize = size
|
||||
|
||||
# Try to find a 'good' max size for text-based ticks.
|
||||
if a_tick.text is not None:
|
||||
self.font.SetPointSize(size)
|
||||
dc = wx.MemoryDC()
|
||||
dc.SelectObject(wx.EmptyBitmap(*clocksize.Get()))
|
||||
dc.SetFont(self.font)
|
||||
|
Reference in New Issue
Block a user