git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8538
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxDocParentFrame::OnMRUFile(wxCommandEvent& event)
{
void wxDocParentFrame::OnMRUFile(wxCommandEvent& event)
{
- int n = event.GetSelection() - wxID_FILE1; // the index in MRU list
+ int n = event.GetId() - wxID_FILE1; // the index in MRU list
wxString filename(m_docManager->GetHistoryFile(n));
if ( !filename.IsEmpty() )
{
wxString filename(m_docManager->GetHistoryFile(n));
if ( !filename.IsEmpty() )
{