Make sure that current cursor font is updated when changing font

Fixes bug #12518.
This commit is contained in:
Jean-Marc Lasgouttes 2022-05-15 23:14:02 +02:00
parent 1464bd3f3f
commit 5f8959d40e

View File

@ -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();
}