]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textwrapper.h
Use proper format in wxGTK clipboard selection handler.
[wxWidgets.git] / include / wx / textwrapper.h
index 8fe58fb13a6aead2489606ab39c99b14fc5f1589..56b7fdc2da018301ec52b8b55ca3027aa3bcd541 100644 (file)
@@ -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)