Skip to content

Commit

Permalink
Fixed|FontLineWrapping: A double newline stops wrapping operation
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 30, 2013
1 parent 92fa4d6 commit 683c0e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/client/src/ui/widgets/fontlinewrapping.cpp
Expand Up @@ -346,7 +346,6 @@ DENG2_PIMPL_NOREF(FontLineWrapping)
// Newlines always cause a wrap.
int wrapPosMax;
int end = findMaxWrap(begin, availWidth, wrapPosMax);
if(end <= begin) break;

if(text.at(end) == NEWLINE)
{
Expand All @@ -356,6 +355,8 @@ DENG2_PIMPL_NOREF(FontLineWrapping)
}
else
{
if(end <= begin) break;

// Rewind to find a good (whitespace) break point.
while(!isWrappable(end))
{
Expand Down

0 comments on commit 683c0e1

Please sign in to comment.