]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for VC6
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2003 13:04:58 +0000 (13:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2003 13:04:58 +0000 (13:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 89e2ff097ee4c3b04d2bda1784c95d9a0556fbf9..986c96f5b416fd98eb8a7ba4e1e11a2f0acf6c05 100644 (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 );