From 1bdb8131106d76df273f3309a8e90b30f0fd90bc Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 16 Mar 2013 19:36:50 +0000 Subject: [PATCH] Fixed centering/right alignment of last line git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextbuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 2a3325fbef..54a9270b9e 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -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 -- 2.45.2