From 670ea9501c77342a1770ee8199b149a05c8ee3ee Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 30 Jun 2013 07:21:37 +0000 Subject: [PATCH] (svn r25524) -Fix [FS#5624]: fallback layouter broke on long "words" without space after a newline --- src/gfx_layout.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index 69b3077f27..785f412e18 100644 --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -324,6 +324,9 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width) next_run = this->buffer_begin + iter->first + 1; begin = this->buffer; + + last_char = begin; + last_space = NULL; } if (IsWhitespace(c)) last_space = this->buffer;