(svn r26036) -Fix [FS#5809]: multi line text was handled incorrectly causing glitches

This commit is contained in:
rubidium 2013-11-18 19:35:06 +00:00
parent 88216aa520
commit a36fb735c0

View File

@ -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);