Fix wxString::Format assertion failure when opening the log window

Originally committed to SVN as r6808.
This commit is contained in:
Thomas Goyne 2012-05-16 04:57:12 +00:00
parent 7e8c18492f
commit 7570d2b982
1 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ public:
localtime_r(&sm->tv.tv_sec, &tmtime);
wxString log = wxString::Format("%c %02d:%02d:%02d %-6ld <%-25s> [%s:%s:%d] %s\n",
agi::log::Severity_ID[sm->severity],
tmtime.tm_hour,
tmtime.tm_min,
tmtime.tm_sec,
sm->tv.tv_usec,
(int)tmtime.tm_hour,
(int)tmtime.tm_min,
(int)tmtime.tm_sec,
(long)sm->tv.tv_usec,
sm->section,
sm->file,
sm->func,