X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e047f594b679f986f8522439e8d2630e119558fd..7b0ccb8a603b4f97740acc65d9429bb58f7ba1bd:/src/common/framecmn.cpp diff --git a/src/common/framecmn.cpp b/src/common/framecmn.cpp index c1a25b5a8e..710742fd71 100644 --- a/src/common/framecmn.cpp +++ b/src/common/framecmn.cpp @@ -360,7 +360,7 @@ bool wxFrameBase::ShowMenuHelp(int menuId) if ( menuId != wxID_SEPARATOR && menuId != -3 /* wxID_TITLE */ ) { const wxMenuItem * const item = FindItemInMenuBar(menuId); - if ( item ) + if ( item && !item->IsSeparator() ) helpString = item->GetHelp(); // notice that it's ok if we don't find the item because it might