]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/menuitem.cpp
added common regex
[wxWidgets.git] / src / motif / menuitem.cpp
index e07a652c5888336c74c344d2ca4b19d0d9da7e22..bb464edeaecfe88deecfcbd700c704511f56fb52 100644 (file)
@@ -21,6 +21,8 @@
 // headers
 // ----------------------------------------------------------------------------
 
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/defs.h"
+
 #include "wx/menu.h"
 #include "wx/menuitem.h"
 #include "wx/utils.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)
 {
 /* static */
 wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 {
-    return wxStripMenuCodes(m_text);
+    return wxStripMenuCodes(text);
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------