don't compare invalid iterators/node pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b028252442
commit
aa78d22e20
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user