]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/menu.cpp
otherwise all runloop dependent callbacks cannot work outside of the main thread
[wxWidgets.git] / src / gtk1 / menu.cpp
index 3d7ac675257d55f9f63578d23c01718cbb2faf34..f4d591fe98dde0c4a634648ea9a6b4444823dba5 100644 (file)
@@ -797,6 +797,9 @@ wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
 
     for ( const wxChar *pc = text.c_str(); *pc; pc++ )
     {
+        if ( *pc == wxT('\t'))
+            break;
+    
         if ( *pc == wxT('_') )
         {
             // GTK 1.2 escapes "xxx_xxx" to "xxx__xxx"