diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index f4a0a5319c..d25886e703 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -1305,7 +1305,7 @@ void MyListCtrl::OnRightClick(wxMouseEvent& event) void MyListCtrl::LogEvent(const wxListEvent& event, const wxChar *eventName) { - wxLogMessage(wxT("Item %d: %s (item text = %s, data = %ld)"), + wxLogMessage(wxT("Item %ld: %s (item text = %s, data = %ld)"), event.GetIndex(), eventName, event.GetText(), static_cast(event.GetData())); }