]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
OS/2 updates for statusbar processing and easier VA debugging
[wxWidgets.git] / src / common / docview.cpp
index bcb467b60e3fbd3305a6183aa80480dd24368afb..072766bb9a90b33ba3b42e6f7d1b7b4e74e4bad4 100644 (file)
@@ -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() )
     {