]> git.saurik.com Git - wxWidgets.git/commitdiff
GetSelection() replaced with GetId() in OnMRUFile
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Sep 2000 18:09:34 +0000 (18:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Sep 2000 18:09:34 +0000 (18:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docmdi.cpp

index dc622fc6f5d0441c77c977a8eb0a60f2c86cbe15..78da575af50b1922f537aaded1c518f1c0391a9c 100644 (file)
@@ -50,7 +50,7 @@ void wxDocMDIParentFrame::OnExit(wxCommandEvent& WXUNUSED(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(""))
         (void)m_docManager->CreateDocument(f, wxDOC_SILENT);
 }