projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct printf() format specifiers for long variables in life demo.
[wxWidgets.git]
/
src
/
common
/
docview.cpp
diff --git
a/src/common/docview.cpp
b/src/common/docview.cpp
index 69e5061128e3828791c6947c9fe8207dc2e73d93..e2ff18c915eb8c32a2ebc1b6490076f434dde366 100644
(file)
--- a/
src/common/docview.cpp
+++ b/
src/common/docview.cpp
@@
-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 &&
// 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);
}
{
DoOpenMRUFile(id - wxID_FILE1);
}