another GetInt/GetId bug fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1657,7 +1657,7 @@ void wxDocParentFrame::OnExit(wxCommandEvent& WXUNUSED(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() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user