Prevent using a bad tree item.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-02-18 21:40:57 +00:00
parent 4424b2a116
commit c32253089b

View File

@@ -159,6 +159,8 @@ class FillingTree(wx.TreeCtrl):
def display(self):
item = self.item
if not item:
return
if self.IsExpanded(item):
self.addChildren(item)
self.setText('')