Paragraph layout fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5157,7 +5157,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, wxRichTextDrawingContext& context, co
|
||||
|
||||
// Add the last line - it's the current pos -> last para pos
|
||||
// Substract -1 because the last position is always the end-paragraph position.
|
||||
if (lastCompletedEndPos <= GetRange().GetEnd()-1)
|
||||
if ((lastCompletedEndPos < GetRange().GetEnd()-1) || lineCount == 0)
|
||||
{
|
||||
int startOffset = (lineCount == 0 ? startPositionFirstLine : startPositionSubsequentLines);
|
||||
availableRect = wxRect(rect.x + startOffset, rect.y + currentPosition.y,
|
||||
|
Reference in New Issue
Block a user