mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r25524) -Fix [FS#5624]: fallback layouter broke on long "words" without space after a newline
This commit is contained in:
parent
76bcf534e2
commit
670ea9501c
@ -324,6 +324,9 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width)
|
|||||||
|
|
||||||
next_run = this->buffer_begin + iter->first + 1;
|
next_run = this->buffer_begin + iter->first + 1;
|
||||||
begin = this->buffer;
|
begin = this->buffer;
|
||||||
|
|
||||||
|
last_char = begin;
|
||||||
|
last_space = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsWhitespace(c)) last_space = this->buffer;
|
if (IsWhitespace(c)) last_space = this->buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user