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