X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/223d09f6b523aac674ef9b72a883dfa8d37c5d4e..ea4508252199a29ebdcabc5b8137e360c3ec4938:/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); }