merge multiple lines into one as otherwise the display is corrupted/unreadable

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-07 19:40:08 +00:00
parent 93daabe060
commit 359fb29e43

View File

@@ -1590,12 +1590,17 @@ void wxListLineData::DrawInReportMode( wxDC *dc,
}
void wxListLineData::DrawTextFormatted(wxDC *dc,
const wxString &text,
const wxString& textOrig,
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);