]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for wxUSE_INTL==0 in wxMSW MDI code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 26 Aug 2009 20:43:53 +0000 (20:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 26 Aug 2009 20:43:53 +0000 (20:43 +0000)
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

index 55078de4c0977298684244d7b0baa29190986d43..104ea7a9d808bc19b599bd4406dd692c61e5f6e7 100644 (file)
@@ -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());
         }
     }