X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63415ba9f5331b2b96215f8a570e05623ea6ec42..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/textwrapper.h?ds=inline diff --git a/include/wx/textwrapper.h b/include/wx/textwrapper.h index 8fe58fb13a..56b7fdc2da 100644 --- a/include/wx/textwrapper.h +++ b/include/wx/textwrapper.h @@ -98,9 +98,8 @@ public: protected: virtual wxWindow *OnCreateLine(const wxString& line) { - wxStaticText* const win = new wxStaticText(m_win, wxID_ANY, ""); - win->SetLabelText(line); - return win; + return new wxStaticText(m_win, wxID_ANY, + wxControl::EscapeMnemonics(line)); } virtual void OnOutputLine(const wxString& line)