From c32253089b11527f12b2228cd7cd60f87ee98533 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 18 Feb 2006 21:40:57 +0000 Subject: [PATCH] Prevent using a bad tree item. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/py/filling.py | 2 ++ 1 file changed, 2 insertions(+) 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('') -- 2.45.2