]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/menuitem.cpp
New Refresh()/Update() behaviour. As expected, scrolling
[wxWidgets.git] / src / motif / menuitem.cpp
index e07a652c5888336c74c344d2ca4b19d0d9da7e22..bb464edeaecfe88deecfcbd700c704511f56fb52 100644 (file)
@@ -21,6 +21,8 @@
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/defs.h"
+
 #include "wx/menu.h"
 #include "wx/menuitem.h"
 #include "wx/utils.h"
@@ -157,7 +159,7 @@ void wxMenuItem::Check(bool bDoCheck)
 /* static */
 wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 {
-    return wxStripMenuCodes(m_text);
+    return wxStripMenuCodes(text);
 }
 
 // ----------------------------------------------------------------------------