forked from mia/Aegisub
Use %ld for size_t in RebuildRecentList, fixes an assert in wxString::Format.
Originally committed to SVN as r4682.
This commit is contained in:
parent
d3e9a906aa
commit
5755d7e1a0
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ void FrameMain::RebuildRecentList(wxString listName,wxMenu *menu,int startID) {
|
||||||
wxString n;
|
wxString n;
|
||||||
wxArrayString entries = lagi_MRU_wxAS(listName);
|
wxArrayString entries = lagi_MRU_wxAS(listName);
|
||||||
for (size_t i=0;i<entries.Count();i++) {
|
for (size_t i=0;i<entries.Count();i++) {
|
||||||
n = wxString::Format(_T("%i"),i+1);
|
n = wxString::Format(_T("%ld"),i+1);
|
||||||
if (i < 9) n = _T("&") + n;
|
if (i < 9) n = _T("&") + n;
|
||||||
wxFileName shortname(entries[i]);
|
wxFileName shortname(entries[i]);
|
||||||
wxString filename = shortname.GetFullName();
|
wxString filename = shortname.GetFullName();
|
||||||
|
|
Loading…
Reference in a new issue