oops, segfault

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2001-10-15 22:53:37 +00:00
parent df02852424
commit a9a05059b9

View File

@ -2295,7 +2295,8 @@ void wxMenuBar::OnDismissMenu(bool dismissMenuBar)
void wxMenuBar::OnDismiss() void wxMenuBar::OnDismiss()
{ {
GetCapture()->ReleaseMouse(); if ( GetCapture() )
GetCapture()->ReleaseMouse();
if ( m_current != -1 ) if ( m_current != -1 )
{ {