Skip to content

Commit

Permalink
Text: Fix single line paragraphs at the end being forced to a new page
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jul 1, 2018
1 parent 18c6e2c commit 81ec8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/Text.cpp
Expand Up @@ -182,7 +182,8 @@ static void ARX_UNICODE_FormattingInRect(Font * font, std::string::const_iterato

}

if(noOneLineParagraphs && linesInParagraph == 1 && itLastParagraphBreak != txtbegin && !wasLineBreak) {
if(noOneLineParagraphs && linesInParagraph == 1 && itLastParagraphBreak != txtbegin
&& !wasLineBreak && it != txtend) {
it = itLastParagraphBreak;
penY -= font->getLineHeight();
}
Expand Down

0 comments on commit 81ec8cf

Please sign in to comment.