]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed centering/right alignment of last line
authorJulian Smart <julian@anthemion.co.uk>
Sat, 16 Mar 2013 19:36:50 +0000 (19:36 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 16 Mar 2013 19:36:50 +0000 (19:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextbuffer.cpp

index 2a3325fbef21bee7b2ea61e378c6fb5a1c5b235c..54a9270b9e6e1945e5e06d41ee27836fc8710d89 100644 (file)
@@ -5110,6 +5110,9 @@ bool wxRichTextParagraph::Layout(wxDC& dc, wxRichTextDrawingContext& context, co
         currentPosition.y += lineHeight;
         currentPosition.y += lineSpacing;
         lineCount ++;
+
+        // Apply paragraph styles such as alignment to the wrapped line
+        ApplyParagraphStyle(line, attr, availableRect, dc);
     }
 
     // Remove remaining unused line objects, if any