From: Vadim Zeitlin Date: Mon, 21 Jul 2003 13:04:58 +0000 (+0000) Subject: compilation fix for VC6 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a0fad723410981793735e10284a3fdb16e9b0682 compilation fix for VC6 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 89e2ff097e..986c96f5b4 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2640,7 +2640,7 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event ) if (!next) { wxTreeItemId current = m_key_current; - while (current && !next) + while (current.IsOk() && !next) { current = GetItemParent( current ); if (current) next = GetNextSibling( current );