From: Vadim Zeitlin Date: Wed, 15 Dec 1999 14:39:56 +0000 (+0000) Subject: corrected bug in wxMenu::Enable() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9d08a1edf6b41502efecdc8c2d5e1195b1e6d3a8 corrected bug in wxMenu::Enable() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/motif/menuitem.cpp b/src/motif/menuitem.cpp index 01ed0ccdaa..deaad78a6f 100644 --- a/src/motif/menuitem.cpp +++ b/src/motif/menuitem.cpp @@ -113,7 +113,7 @@ void wxMenuItem::DeleteSubMenu() void wxMenuItem::Enable(bool bDoEnable) { - if ( m_isChecked != bDoEnable ) + if ( m_isEnabled != bDoEnable ) { if ( !IsSubMenu() ) {