Fix 768a31b
: When cascading to another text layouter, clear the old font run state left over from the previous (failed) layout attempt.
This commit is contained in:
@@ -597,6 +597,7 @@ static inline void GetLayouter(Layouter::LineCacheItem &line, const char *&str,
|
|||||||
Font *f = Layouter::GetFont(state.fontsize, state.cur_colour);
|
Font *f = Layouter::GetFont(state.fontsize, state.cur_colour);
|
||||||
|
|
||||||
line.buffer = buff_begin;
|
line.buffer = buff_begin;
|
||||||
|
fontMapping.Clear();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Go through the whole string while adding Font instances to the font map
|
* Go through the whole string while adding Font instances to the font map
|
||||||
|
Reference in New Issue
Block a user