]> git.lyx.org Git - lyx.git/commitdiff
Exclude insets without output from fontswitch_insets
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Dec 2020 13:31:26 +0000 (14:31 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Wed, 2 Dec 2020 13:31:26 +0000 (14:31 +0100)
src/Paragraph.cpp

index 1116ad62b22d824da894f75232c3bd76804e82f6..5d1003da6a41f7b528ee31f1de1326528a664a06 100644 (file)
@@ -2591,7 +2591,8 @@ void Paragraph::latex(BufferParams const & bparams,
                                c == META_INSET
                                && getInset(i)
                                && getInset(i)->allowMultiPar()
-                               && getInset(i)->lyxCode() != ERT_CODE;
+                               && getInset(i)->lyxCode() != ERT_CODE
+                               && getInset(i)->producesOutput();
 
                bool closeLanguage = false;
                bool lang_switched_at_inset = false;