diff options
author | rubidium <rubidium@openttd.org> | 2013-11-18 19:35:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-18 19:35:06 +0000 |
commit | a36fb735c06c8ee58aa642e8298e7377a18c466c (patch) | |
tree | 7b2de6cf60e9eff1ff7ca2c70ce89b3ac8f7ed71 /src | |
parent | 88216aa52035255c46ea808d6a73cbd99f731469 (diff) | |
download | openttd-a36fb735c06c8ee58aa642e8298e7377a18c466c.tar.xz |
(svn r26036) -Fix [FS#5809]: multi line text was handled incorrectly causing glitches
Diffstat (limited to 'src')
-rw-r--r-- | src/gfx_layout.cpp | 2 |
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); |