GetSelection() replaced with GetId() in OnMRUFile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,7 +50,7 @@ void wxDocMDIParentFrame::OnExit(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& 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(""))
|
if (f != wxT(""))
|
||||||
(void)m_docManager->CreateDocument(f, wxDOC_SILENT);
|
(void)m_docManager->CreateDocument(f, wxDOC_SILENT);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user