Ensure that wnd is not None before calling Hide

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-05-08 02:41:40 +00:00
parent fed4b83921
commit 0d7fe3edac

View File

@@ -3562,7 +3562,8 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
for child in self._itemWithWindow:
if not self.IsVisible(child):
wnd = child.GetWindow()
wnd.Hide()
if wnd:
wnd.Hide()
def Unselect(self):