summaryrefslogtreecommitdiff
path: root/src/gfx_layout.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-30 07:21:37 +0000
committerrubidium <rubidium@openttd.org>2013-06-30 07:21:37 +0000
commitea5d35a89651640afe73fe2d6af9b2c82a7f3134 (patch)
tree856103c492517c569c42afca4d9c8de9a91101e1 /src/gfx_layout.cpp
parent4fbcb73166f5707dee330358b9ba4430f6d2c482 (diff)
downloadopenttd-ea5d35a89651640afe73fe2d6af9b2c82a7f3134.tar.xz
(svn r25524) -Fix [FS#5624]: fallback layouter broke on long "words" without space after a newline
Diffstat (limited to 'src/gfx_layout.cpp')
-rw-r--r--src/gfx_layout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
index 69b3077f2..785f412e1 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;