From 574f547aca42c5c712de98fb424258d45a3ef6df Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 16 Jun 2018 00:35:12 +0200 Subject: Fix 768a31b: When cascading to another text layouter, clear the old font run state left over from the previous (failed) layout attempt. --- src/gfx_layout.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gfx_layout.cpp') diff --git a/src/gfx_layout.cpp b/src/gfx_layout.cpp index 1d9fc7c31..0a9f5a0b1 100644 --- a/src/gfx_layout.cpp +++ b/src/gfx_layout.cpp @@ -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 -- cgit v1.2.3-54-g00ecf