X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/944311338650b4f09403e04696a0758eba8db452..6ed100b4a122dfdb8752b020e250e8b6c9e1381e:/wxPython/wx/lib/customtreectrl.py diff --git a/wxPython/wx/lib/customtreectrl.py b/wxPython/wx/lib/customtreectrl.py index 34a79ba748..75d792258c 100644 --- a/wxPython/wx/lib/customtreectrl.py +++ b/wxPython/wx/lib/customtreectrl.py @@ -3443,7 +3443,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow): if not item: raise "\nERROR: Invalid Tree Item. " - if not self.HasFlag(TR_HIDE_ROOT) or item != GetRootItem(): + if not self.HasFlag(TR_HIDE_ROOT) or item != self.GetRootItem(): self.Expand(item) if not self.IsExpanded(item): return