]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for lines not wrapping soon enough if tabs are present
authorJulian Smart <julian@anthemion.co.uk>
Thu, 3 Feb 2011 20:05:33 +0000 (20:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 3 Feb 2011 20:05:33 +0000 (20:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index 21f4d653cffb33e8c594a7177538a6dbecf946e6..cac09f4e06f16dd314056d406c8fde858297135d 100644 (file)
@@ -4366,7 +4366,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, const wxRect& rect, int style)
     int paraDescent = 0;
 
     // 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
     node = m_children.GetFirst();
     while (node)