diff --git a/samples/thread/test.cpp b/samples/thread/test.cpp index 71f34019dc..7d2c088b4f 100644 --- a/samples/thread/test.cpp +++ b/samples/thread/test.cpp @@ -139,11 +139,11 @@ MyThread::MyThread(MyFrame *frame) void MyThread::WriteText(const wxString& text) { wxString msg; - msg << wxTime().FormatTime() << ": " << text; // before doing any GUI calls we must ensure that this thread is the only // one doing it! wxMutexGuiLocker guiLocker; + msg << wxTime().FormatTime() << ": " << text; m_frame->WriteText(msg); }