summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-11-18 19:35:06 +0000
committerrubidium <rubidium@openttd.org>2013-11-18 19:35:06 +0000
commita36fb735c06c8ee58aa642e8298e7377a18c466c (patch)
tree7b2de6cf60e9eff1ff7ca2c70ce89b3ac8f7ed71
parent88216aa52035255c46ea808d6a73cbd99f731469 (diff)
downloadopenttd-a36fb735c06c8ee58aa642e8298e7377a18c466c.tar.xz
(svn r26036) -Fix [FS#5809]: multi line text was handled incorrectly causing glitches
-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 a47e3c8ac..6a3d1ee96 100644
--- a/src/gfx_layout.cpp
+++ b/src/gfx_layout.cpp
@@ -569,7 +569,7 @@ static FallbackParagraphLayout *GetParagraphLayout(WChar *buff, WChar *buff_end,
* @tparam T The type of layouter we want.
*/
template <typename T>
-static inline void GetLayouter(Layouter::LineCacheItem &line, const char *str, FontState state)
+static inline void GetLayouter(Layouter::LineCacheItem &line, const char *&str, FontState &state)
{
if (line.buffer != NULL) free(line.buffer);