mirror of https://github.com/OpenTTD/OpenTTD
Fix 768a31b: When cascading to another text layouter, clear the old font run state left over from the previous (failed) layout attempt.
parent
5ab06ef8a3
commit
574f547aca
|
@ -597,6 +597,7 @@ static inline void GetLayouter(Layouter::LineCacheItem &line, const char *&str,
|
|||
Font *f = Layouter::GetFont(state.fontsize, state.cur_colour);
|
||||
|
||||
line.buffer = buff_begin;
|
||||
fontMapping.Clear();
|
||||
|
||||
/*
|
||||
* Go through the whole string while adding Font instances to the font map
|
||||
|
|
Loading…
Reference in New Issue