Fixed assert when moving out of a menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -347,7 +347,7 @@ void wxPopupMenuWindow::SetCurrentItem(wxMenuItemIter node)
|
||||
|
||||
void wxPopupMenuWindow::ChangeCurrent(wxMenuItemIter node)
|
||||
{
|
||||
if ( !m_nodeCurrent || (node != m_nodeCurrent) )
|
||||
if ( !m_nodeCurrent || !node || (node != m_nodeCurrent) )
|
||||
{
|
||||
wxMenuItemIter nodeOldCurrent = m_nodeCurrent;
|
||||
|
||||
|
Reference in New Issue
Block a user