From 5f8959d40e3188ea8fdd1d18740f34583cd35cc8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 15 May 2022 23:14:02 +0200 Subject: [PATCH] Make sure that current cursor font is updated when changing font Fixes bug #12518. --- src/Text2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index 82cc994be5..837bb31fc6 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -426,8 +426,9 @@ void Text::toggleFree(Cursor & cur, Font const & font, bool toggleall) cur.clearSelection(); cur.top() = resetCursor; cur.resetAnchor(); - cur.setCurrentFont(); } + + cur.setCurrentFont(); }