X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/caeac82e4d649027472b6696513d632d4370f4d4..959b1a338e3b7c0e237b53ef3d7c9b51f4063eb6:/wxPython/wx/lib/analogclock/helpers.py diff --git a/wxPython/wx/lib/analogclock/helpers.py b/wxPython/wx/lib/analogclock/helpers.py index 891b40ecd3..30c66066fb 100644 --- a/wxPython/wx/lib/analogclock/helpers.py +++ b/wxPython/wx/lib/analogclock/helpers.py @@ -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)