Add destroy statement so we can draw our bitmap onto another dc on wxMSW

This commit is contained in:
cncfanatics
2010-09-05 17:56:06 +02:00
parent e6f24eaae5
commit 4348281d9c

View File

@@ -35,6 +35,7 @@ class DroneCheckbox(ViewColumn):
dc.SetBackground(wx.TheBrushList.FindOrCreateBrush(fittingView.GetBackgroundColour(), wx.SOLID))
dc.Clear()
wx.RendererNative.Get().DrawCheckBox(fittingView, dc, wx.Rect(0, 0, 16, 16), state)
dc.Destroy()
setattr(self, "%sId" % name, fittingView.imageList.Add(bitmap))
def getText(self, mod):