guarding against NULL peers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f93849e677
commit
3fe48198b5
@ -91,7 +91,8 @@
|
||||
if ( menuimpl )
|
||||
{
|
||||
wxMenu* wxpeer = (wxMenu*) menuimpl->GetWXPeer();
|
||||
wxpeer->HandleMenuOpened();
|
||||
if ( wxpeer )
|
||||
wxpeer->HandleMenuOpened();
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,7 +103,8 @@
|
||||
if ( menuimpl )
|
||||
{
|
||||
wxMenu* wxpeer = (wxMenu*) menuimpl->GetWXPeer();
|
||||
wxpeer->HandleMenuClosed();
|
||||
if ( wxpeer )
|
||||
wxpeer->HandleMenuClosed();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user