X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9667cda38388d1f82f805d6d8cdcdca4a1ae877..8c3288a7b682794e4c4a60f2b8487627d0f7c1aa:/src/os2/menu.cpp diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index c63cfe2fea..8ca65be64b 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -73,9 +73,11 @@ static wxString TextToLabel( const wxString& rsTitle ) { - wxString sTitle; + wxString sTitle = ""; const wxChar* zPc; + if (rsTitle.IsEmpty()) + return sTitle; for (zPc = rsTitle.c_str(); *zPc != wxT('\0'); zPc++ ) { if (*zPc == wxT('&') ) @@ -291,6 +293,7 @@ bool wxMenu::DoInsertOrAppend( ERRORID vError; wxString sError; char zMsg[128]; + #if wxUSE_ACCEL UpdateAccel(pItem); #endif // wxUSE_ACCEL