corrected bug in wxMenu::Enable()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-12-15 14:39:56 +00:00
parent faa7a70eaf
commit 9d08a1edf6

View File

@ -113,7 +113,7 @@ void wxMenuItem::DeleteSubMenu()
void wxMenuItem::Enable(bool bDoEnable) void wxMenuItem::Enable(bool bDoEnable)
{ {
if ( m_isChecked != bDoEnable ) if ( m_isEnabled != bDoEnable )
{ {
if ( !IsSubMenu() ) if ( !IsSubMenu() )
{ {