]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docview.cpp
Make it compile
[wxWidgets.git] / src / common / docview.cpp
index 69e5061128e3828791c6947c9fe8207dc2e73d93..e2ff18c915eb8c32a2ebc1b6490076f434dde366 100644 (file)
@@ -1087,7 +1087,7 @@ void wxDocManager::OnMRUFile(wxCommandEvent& event)
     // Check if the id is in the range assigned to MRU list entries.
     const int id = event.GetId();
     if ( id >= wxID_FILE1 &&
-            id < wxID_FILE1 + m_fileHistory->GetBaseId() )
+            id < wxID_FILE1 + static_cast<int>(m_fileHistory->GetCount()) )
     {
         DoOpenMRUFile(id - wxID_FILE1);
     }