]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
define WX_XTI_TEMPLATE_FIX in case it is not yet
[wxWidgets.git] / 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 );