From bc2fe7b20452a860c781b15c91ebb8c447ff137d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 26 Aug 2009 20:43:53 +0000 Subject: [PATCH] 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 --- src/msw/mdi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/mdi.cpp b/src/msw/mdi.cpp index 55078de4c0..104ea7a9d8 100644 --- a/src/msw/mdi.cpp +++ b/src/msw/mdi.cpp @@ -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()); } } -- 2.45.2