[LyX/2.3.x] Set current cursor font when toggling emphasize
Richard Kimberly Heck
rikiheck at lyx.org
Wed Nov 23 01:35:55 UTC 2022
commit ca259d7529b71b0558d526e0c17d0a36a282d210
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Tue Jan 4 18:58:55 2022 +0100
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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/Text2.cpp b/src/Text2.cpp
index 3a7ca6c..961373c 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();
}
}
More information about the lyx-cvs
mailing list