X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e547f7a7b87ef1290fbbf3eeeac24665043a9f73..86948c99a6f0fd177b09b3db0ef702739ec62a27:/src/common/containr.cpp diff --git a/src/common/containr.cpp b/src/common/containr.cpp index 6146b45ac6..185f8098d9 100644 --- a/src/common/containr.cpp +++ b/src/common/containr.cpp @@ -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?