Compilation fix for wxUSE_INTL==0 in wxMSW MDI code.
Using wxGetTranslation().wx_str() doesn't work when wxUSE_INTL==0. Closes #11142. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1474,7 +1474,7 @@ void MDIInsertWindowMenu(wxWindow *win, WXHMENU hMenu, HMENU menuWin)
|
||||
inserted = true;
|
||||
::InsertMenu(hmenu, i, MF_BYPOSITION | MF_POPUP | MF_STRING,
|
||||
(UINT_PTR)menuWin,
|
||||
wxGetTranslation(WINDOW_MENU_LABEL).wx_str());
|
||||
wxString(wxGetTranslation(WINDOW_MENU_LABEL)).wx_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1483,7 +1483,7 @@ void MDIInsertWindowMenu(wxWindow *win, WXHMENU hMenu, HMENU menuWin)
|
||||
{
|
||||
::AppendMenu(hmenu, MF_POPUP,
|
||||
(UINT_PTR)menuWin,
|
||||
wxGetTranslation(WINDOW_MENU_LABEL).wx_str());
|
||||
wxString(wxGetTranslation(WINDOW_MENU_LABEL)).wx_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user