diff --git a/src/common/docview.cpp b/src/common/docview.cpp index ce47e57dd5..4ca21c436e 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2165,6 +2165,8 @@ void wxFileHistory::AddFileToHistory(const wxString& file) pathInMenu = m_fileHistory[i]; } + // we need to quote '&' characters which are used for mnemonics + pathInMenu.Replace(_T("&"), _T("&&")); wxString buf; buf.Printf(s_MRUEntryFormat, i + 1, pathInMenu.c_str()); wxList::compatibility_iterator node = m_fileMenus.GetFirst();