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:
Stefan Csomor 2009-01-10 19:58:53 +00:00
parent f93849e677
commit 3fe48198b5

View File

@ -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();
}
}