From ca259d7529b71b0558d526e0c17d0a36a282d210 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 4 Jan 2022 18:58:55 +0100 Subject: [PATCH] Set current cursor font when toggling emphasize The change actually works for all font toggling with implicit selection. Fixes bug #12450. (cherry picked from commit d44c63e2c67cad1bd0dda4cf3e0fa09df5b225ad) --- src/Text2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text2.cpp b/src/Text2.cpp index 3a7ca6cd9d..961373ce7f 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -432,6 +432,7 @@ void Text::toggleFree(Cursor & cur, Font const & font, bool toggleall) cur.clearSelection(); cur.top() = resetCursor; cur.resetAnchor(); + cur.setCurrentFont(); } } -- 2.39.2