]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/thread/thread.cpp
Fix crash in wxTreeListCtrl::GetItemText() if text was never set.
[wxWidgets.git] / samples / thread / thread.cpp
index 6b0903cb827b522220947cb4b8fbca3c7cee5fd8..1e5c3ee9fb7317a41ee866d709d6ffc7c1c74c62 100644 (file)
@@ -479,7 +479,7 @@ MyFrame::DoLogRecord(wxLogLevel level,
         wxDateTime(info.timestamp).FormatISOTime(),
         info.threadId == wxThread::GetMainId()
             ? wxString("main")
-            : wxString::Format("%x", info.threadId),
+            : wxString::Format("%lx", info.threadId),
         msg + "\n"
     );
 }