Menu corruption fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user