]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/containr.cpp
Rearranged, added info about universal builds
[wxWidgets.git] / src / common / containr.cpp
index 55b6109a9b29e768fc260c092c7c319338b2b124..6146b45ac6ebd9cea626f27099fac1d2ab714bfa 100644 (file)
@@ -375,6 +375,12 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
         // Have we come to the last or first item on the panel?
         if ( !node )
         {
+            if ( !start_node )
+            {
+                // exit now as otherwise we'd loop forever
+                break;
+            }
+
             if ( !goingDown )
             {
                 // Check if our (maybe grand) parent is another panel: if this