From e547f7a7b87ef1290fbbf3eeeac24665043a9f73 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 21 Mar 2006 13:10:20 +0000 Subject: [PATCH] better fix for infinite loop in HandleOnNavigationKey() when wxUSE_STL==1 and start_node is NULL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/containr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/containr.cpp b/src/common/containr.cpp index 55b6109a9b..6146b45ac6 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -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 -- 2.47.2