commit 09c72d7c8d3341ecc7ae2307b4355c592d9dcc1b
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Apr 13 11:36:10 2024 +0200

    Set cursor font after pasting to PassThru inset (#12592)
---
 src/insets/InsetText.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index d65cbf9f31..b8e65709a1 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -334,6 +334,12 @@ void InsetText::doDispatch(Cursor & cur, FuncRequest & cmd)
                // attributes.
                // FIXME: Change only the pasted paragraphs
                fixParagraphsFont();
+               // This might be needed in general, but we currently
+               // only have evidence for PassThru (latex_font),
+               // see #12592
+               if (isPassThru())
+                       // assure current cursor font is latex
+                       cur.setCurrentFont();
                break;
 
        case LFUN_INSET_SPLIT:
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to