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:
@@ -1590,12 +1590,17 @@ void wxListLineData::DrawInReportMode( wxDC *dc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void wxListLineData::DrawTextFormatted(wxDC *dc,
|
void wxListLineData::DrawTextFormatted(wxDC *dc,
|
||||||
const wxString &text,
|
const wxString& textOrig,
|
||||||
int col,
|
int col,
|
||||||
int x,
|
int x,
|
||||||
int yMid,
|
int yMid,
|
||||||
int width)
|
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;
|
wxCoord w, h;
|
||||||
dc->GetTextExtent(text, &w, &h);
|
dc->GetTextExtent(text, &w, &h);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user