git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44633
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
void wxListLineData::DrawTextFormatted(wxDC *dc,
}
void wxListLineData::DrawTextFormatted(wxDC *dc,
+ const wxString& textOrig,
int col,
int x,
int yMid,
int width)
{
int col,
int x,
int yMid,
int width)
{
+ // we don't support displaying multiple lines currently (and neither does
+ // wxMSW FWIW) so just merge all the lines
+ wxString text(textOrig);
+ text.Replace(_T("\n"), _T(" "));
+
wxCoord w, h;
dc->GetTextExtent(text, &w, &h);
wxCoord w, h;
dc->GetTextExtent(text, &w, &h);