diff --git a/src/generic/dirctrlg.cpp b/src/generic/dirctrlg.cpp index 04542809fd..4ff52eddb7 100644 --- a/src/generic/dirctrlg.cpp +++ b/src/generic/dirctrlg.cpp @@ -869,7 +869,7 @@ bool wxGenericDirCtrl::ExpandPath(const wxString& path) bool done = FALSE; wxTreeItemId id = FindChild(m_rootId, path, done); wxTreeItemId lastId = id; // The last non-zero id - while (id.IsOK() && !done) + while (id.IsOk() && !done) { ExpandDir(id);