]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/customtreectrl.py
forcefully disable wxUSE_STD_STRING and wxUSE_STL for Digital Mars and Open Watcom
[wxWidgets.git] / wxPython / wx / lib / customtreectrl.py
index 34a79ba748eb27785f162c5da5f94b13ca3b730b..75d792258c7ec6eb1d92554d6107b42f5ac9a3f4 100644 (file)
@@ -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