Set the DC font before drawing the label

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-01-08 21:37:45 +00:00
parent c92ed9f7a7
commit 6dfb13b1b7

View File

@ -100,6 +100,7 @@ class ColourSelect(wx.BitmapButton):
bmp = wx.EmptyBitmap(width-bdr, height-bdr)
dc = wx.MemoryDC()
dc.SelectObject(bmp)
dc.SetFont(self.GetFont())
label = self.GetLabel()
# Just make a little colored bitmap
dc.SetBackground(wx.Brush(self.colour))