commit 95fed10131ea2df99da3ec1d4ef736741167ea19
Author: Juergen Spitzmueller <[email protected]>
Date:   Wed Dec 2 14:31:26 2020 +0100

    Exclude insets without output from fontswitch_insets
---
 src/Paragraph.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 1116ad6..5d1003d 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -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;
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to