Changeset - r20503:83cadc911446
[Not reviewed]
master
0 1 0
rubidium - 11 years ago 2013-06-30 07:21:37
rubidium@openttd.org
(svn r25524) -Fix [FS#5624]: fallback layouter broke on long "words" without space after a newline
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/gfx_layout.cpp
Show inline comments
 
@@ -321,12 +321,15 @@ ParagraphLayout::Line *ParagraphLayout::
 
			*l->Append() = new VisualRun(iter->second, begin, this->buffer - begin, l->getWidth());
 
			iter++;
 
			assert(iter != this->runs.End());
 

	
 
			next_run = this->buffer_begin + iter->first + 1;
 
			begin = this->buffer;
 

	
 
			last_char = begin;
 
			last_space = NULL;
 
		}
 

	
 
		if (IsWhitespace(c)) last_space = this->buffer;
 

	
 
		last_char = this->buffer;
 

	
0 comments (0 inline, 0 general)