Fix for lines not wrapping soon enough if tabs are present
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4366,7 +4366,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, const wxRect& rect, int style)
|
|||||||
int paraDescent = 0;
|
int paraDescent = 0;
|
||||||
|
|
||||||
// This calculates the partial text extents
|
// This calculates the partial text extents
|
||||||
GetRangeSize(GetRange(), paraSize, paraDescent, dc, wxRICHTEXT_UNFORMATTED|wxRICHTEXT_CACHE_SIZE, wxPoint(0,0), & partialExtents);
|
GetRangeSize(GetRange(), paraSize, paraDescent, dc, wxRICHTEXT_UNFORMATTED|wxRICHTEXT_CACHE_SIZE, rect.GetPosition(), & partialExtents);
|
||||||
#else
|
#else
|
||||||
node = m_children.GetFirst();
|
node = m_children.GetFirst();
|
||||||
while (node)
|
while (node)
|
||||||
|
Reference in New Issue
Block a user