X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b800ce7c2bb1c1f08075f22be2e7412124b47f..58211774c81794d1408967203294af1206b29394:/wxPython/wx/py/filling.py diff --git a/wxPython/wx/py/filling.py b/wxPython/wx/py/filling.py index 56b6c7cf41..28714bd6a5 100644 --- a/wxPython/wx/py/filling.py +++ b/wxPython/wx/py/filling.py @@ -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('')