commit 13f9edb770859f6f16f0e76c21b050329fffbe39
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Feb 14 08:46:11 2022 +0100

    Reset font when leaving insets while auto-inserting (fixes #12477)
---
 src/Text3.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 529e756..c75a9c3 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -2132,6 +2132,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                                // leave this now in order to insert the next 
one.
                                if (inautoarg) {
                                        cur.leaveInset(cur.inset());
+                                       cur.setCurrentFont();
                                        cur.posForward();
                                        if (arg.insertonnewline && cur.pos() > 
0) {
                                                FuncRequest 
cmd2(LFUN_PARAGRAPH_BREAK);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to