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 d44c63e2c6)
This commit is contained in:
Jean-Marc Lasgouttes 2022-01-04 18:58:55 +01:00 committed by Richard Kimberly Heck
parent 4af43b6d52
commit ca259d7529

View File

@ -432,6 +432,7 @@ void Text::toggleFree(Cursor & cur, Font const & font, bool toggleall)
cur.clearSelection();
cur.top() = resetCursor;
cur.resetAnchor();
cur.setCurrentFont();
}
}