From: Robin Dunn Date: Sun, 25 Apr 2004 00:43:20 +0000 (+0000) Subject: silence a bogus error message X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ea16d351278be2c3a9c0ffeedea84085f089f64b silence a bogus error message git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/menuitem.cpp b/src/msw/menuitem.cpp index 957d0affb1..2acfe24a1b 100644 --- a/src/msw/menuitem.cpp +++ b/src/msw/menuitem.cpp @@ -361,7 +361,8 @@ void wxMenuItem::SetText(const wxString& text) UINT flagsOld = ::GetMenuState(hMenu, id, MF_BYCOMMAND); if ( flagsOld == 0xFFFFFFFF ) { - wxLogLastError(wxT("GetMenuState")); + // It's not an error, it means that the menu item doesn't exist + //wxLogLastError(wxT("GetMenuState")); } else {