]> git.saurik.com Git - wxWidgets.git/commitdiff
don't compare invalid iterators/node pointers
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 23 Mar 2006 00:47:01 +0000 (00:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 23 Mar 2006 00:47:01 +0000 (00:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/containr.cpp

index 6146b45ac6ebd9cea626f27099fac1d2ab714bfa..185f8098d9f3430adf14a3fa374c75e95fda34bb 100644 (file)
@@ -369,7 +369,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
     for ( ;; )
     {
         // don't go into infinite loop
-        if ( start_node && node == start_node )
+        if ( start_node && node && node == start_node )
             break;
 
         // Have we come to the last or first item on the panel?