]> git.saurik.com Git - wxWidgets.git/commitdiff
Set the DC font before drawing the label
authorRobin Dunn <robin@alldunn.com>
Thu, 8 Jan 2004 21:37:45 +0000 (21:37 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 8 Jan 2004 21:37:45 +0000 (21:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/colourselect.py

index b96dadd29e3567de889f3e666e2681f39ffccaff..6fb0bd7e77c8340ff8cfc5ff5d03b3ce8f09215e 100644 (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))