[LyX/master] Exclude insets without output from fontswitch_insets

Juergen Spitzmueller spitz at lyx.org
Wed Dec 2 13:02:30 UTC 2020


commit 95fed10131ea2df99da3ec1d4ef736741167ea19
Author: Juergen Spitzmueller <spitz at lyx.org>
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;


More information about the lyx-cvs mailing list