]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't add space before para twice in paragraph layout
authorJulian Smart <julian@anthemion.co.uk>
Mon, 30 Aug 2010 08:47:23 +0000 (08:47 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 30 Aug 2010 08:47:23 +0000 (08:47 +0000)
Discard attributes from empty text object when merging

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index ab926437d8195c39e7421a9ddaadf054214c0e86..fb45e814cdc6f8a08d89164332c16d3ff1f1f174 100644 (file)
@@ -3594,7 +3594,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, const wxRect& rect, int style)
     // Apply styles to wrapped lines
     ApplyParagraphStyle(attr, rect, dc);
 
-    SetCachedSize(wxSize(maxWidth, currentPosition.y + spaceBeforePara + spaceAfterPara));
+    SetCachedSize(wxSize(maxWidth, currentPosition.y + spaceAfterPara));
 
     m_dirty = false;