X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..e09526489246ee620c62c1b5673d294fff89b736:/src/common/docmdi.cpp diff --git a/src/common/docmdi.cpp b/src/common/docmdi.cpp index dc622fc6f5..78da575af5 100644 --- a/src/common/docmdi.cpp +++ b/src/common/docmdi.cpp @@ -50,7 +50,7 @@ void wxDocMDIParentFrame::OnExit(wxCommandEvent& WXUNUSED(event)) void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event) { - wxString f(m_docManager->GetHistoryFile(event.GetSelection() - wxID_FILE1)); + wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1)); if (f != wxT("")) (void)m_docManager->CreateDocument(f, wxDOC_SILENT); }