]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docmdi.cpp
applied a patch to remove spurious constrains unsatisifed warnings
[wxWidgets.git] / 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);
 }