compilation fix for VC6

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-21 13:04:58 +00:00
parent c89d41600b
commit a0fad72341

View File

@@ -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 );