void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event)
{
- wxString f(m_docManager->GetHistoryFile(event.GetSelection() - wxID_FILE1));
- if (f != T(""))
+ wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
+ if (f != wxT(""))
(void)m_docManager->CreateDocument(f, wxDOC_SILENT);
}