Fixed centering/right alignment of last line

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2013-03-16 19:36:50 +00:00
parent cc00695bb7
commit 1bdb813110

View 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