summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-07-06 18:55:38 +0000
committerfrosch <frosch@openttd.org>2013-07-06 18:55:38 +0000
commit72a531bc82d5458d8f3483ffa88332b673a819d4 (patch)
tree37fdb21a71d8c44ff356e09517d24ca4fd78dcdf /src
parent3fa1b4e8c32041d4b9b76664b4d53ef5e13a4e5f (diff)
downloadopenttd-72a531bc82d5458d8f3483ffa88332b673a819d4.tar.xz
(svn r25568) -Fix: Non-ICU layouter started new lines with the space which triggered the linebreak.
Diffstat (limited to 'src')
-rw-r--r--src/gfx_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp
index 767bdc1d3..f3b1ac1d3 100644
--- a/src/gfx_layout.cpp
+++ b/src/gfx_layout.cpp
@@ -355,7 +355,7 @@ ParagraphLayout::Line *ParagraphLayout::nextLine(int max_width)
last_char = this->buffer;
} else {
/* A space is found; perfect place to terminate */
- this->buffer = last_space;
+ this->buffer = last_space + 1;
last_char = last_space;
}
break;