From 95fed10131ea2df99da3ec1d4ef736741167ea19 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 2 Dec 2020 14:31:26 +0100 Subject: [PATCH] Exclude insets without output from fontswitch_insets --- src/Paragraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 1116ad62b2..5d1003da6a 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; -- 2.39.5