]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textwrapper.h
Add wxTopLevelWindow::SetRepresentedFilename().
[wxWidgets.git] / include / wx / textwrapper.h
index bf4991f7f45aa912af853d079486132b07903e79..8fe58fb13a6aead2489606ab39c99b14fc5f1589 100644 (file)
@@ -98,7 +98,9 @@ public:
 protected:
     virtual wxWindow *OnCreateLine(const wxString& line)
     {
-        return new wxStaticText(m_win, wxID_ANY, line);
+        wxStaticText* const win = new wxStaticText(m_win, wxID_ANY, "");
+        win->SetLabelText(line);
+        return win;
     }
 
     virtual void OnOutputLine(const wxString& line)