]> git.lyx.org Git - features.git/commitdiff
Reset font when leaving insets while auto-inserting (fixes #12477)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 14 Feb 2022 07:46:11 +0000 (08:46 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 14 Feb 2022 07:46:11 +0000 (08:46 +0100)
src/Text3.cpp

index 529e756a97742b0035b180af1dc01c8eba84f091..c75a9c3bcb6a4b10586467fd4a7b13e160260fcb 100644 (file)
@@ -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);