X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e4a10ba27b06cca2555b989bd05a0af08eb0237..609b563c8b9ade4fcde9160f11c7deaf16a9f7b6:/wxPython/wx/lib/colourselect.py?ds=inline diff --git a/wxPython/wx/lib/colourselect.py b/wxPython/wx/lib/colourselect.py index f71329967e..20fb0d0e35 100644 --- a/wxPython/wx/lib/colourselect.py +++ b/wxPython/wx/lib/colourselect.py @@ -104,8 +104,13 @@ class ColourSelect(wx.BitmapButton): def MakeBitmap(self): - bdr = 10 + bdr = 8 width, height = self.GetSize() + + # yes, this is weird, but it appears to work around a bug in wxMac + if "wxMac" in wx.PlatformInfo and width == height: + height -= 1 + bmp = wx.EmptyBitmap(width-bdr, height-bdr) dc = wx.MemoryDC() dc.SelectObject(bmp)