Merge branch 'konstantinbo-konstantinbo-gdi-patch-1'

This commit is contained in:
Robin Dunn
2018-02-19 16:43:16 -08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ Changes in this release include the following:
* Fix Python3 division in ThumbnailCtrl. (#746)
* Fix leaking image list in CheckListCtrlMixin (#752)

View File

@@ -732,7 +732,7 @@ class CheckListCtrlMixin(object):
self.uncheck_image = self.__imagelist_.Add(uncheck_image)
self.check_image = self.__imagelist_.Add(check_image)
self.SetImageList(self.__imagelist_, wx.IMAGE_LIST_SMALL)
self.AssignImageList(self.__imagelist_, wx.IMAGE_LIST_SMALL)
self.__last_check_ = None
self.Bind(wx.EVT_LEFT_DOWN, self.__OnLeftDown_)