]> git.saurik.com Git - wxWidgets.git/commitdiff
another GetInt/GetId bug fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Oct 2000 19:20:49 +0000 (19:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 12 Oct 2000 19:20:49 +0000 (19:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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() )
     {