1
0
Fork 0

Fix 768a31b: When cascading to another text layouter, clear the old font run state left over from the previous (failed) layout attempt.

pull/6825/head
Michael Lutz 2018-06-16 00:35:12 +02:00
parent 5ab06ef8a3
commit 574f547aca
1 changed files with 1 additions and 0 deletions

View File

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