diff --git a/interface/wx/event.h b/interface/wx/event.h index 191fd45884..cb4a6720d1 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -442,7 +442,7 @@ public: void FunctionInAWorkerThread(const wxString& str) { wxThreadEvent evt; - evt->SetString(str); + evt.SetString(str); // wxThreadEvent::Clone() makes sure that the internal wxString // member is not shared by other wxString instances: