]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/analogclock/helpers.py
redirect to the page only the help events coming from this control itself to avoid...
[wxWidgets.git] / wxPython / wx / lib / analogclock / helpers.py
index 891b40ecd33b07571a40d5136fa3bc02634d06c2..30c66066fbda7f82f63357cbfbb99d800ec86ea7 100644 (file)
@@ -649,11 +649,11 @@ class TickSet:
         a_tick = self.ticks[0]
 
         size = a_tick.GetMaxSize(scale)
         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:
         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)
             dc = wx.MemoryDC()
             dc.SelectObject(wx.EmptyBitmap(*clocksize.Get()))
             dc.SetFont(self.font)