diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 5178cf554b..347ef32e44 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -868,7 +868,7 @@ void wxMenuItem::DoSetText( const wxString& str ) { m_text << wxT("\\\\"); } -#elif +#else else if ( *pc == wxT('_') ) // escape underscores { m_text << wxT("__"); diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index 5178cf554b..347ef32e44 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -868,7 +868,7 @@ void wxMenuItem::DoSetText( const wxString& str ) { m_text << wxT("\\\\"); } -#elif +#else else if ( *pc == wxT('_') ) // escape underscores { m_text << wxT("__");