[LyX/master] At end of children, language needs to be reset

Juergen Spitzmueller spitz at lyx.org
Tue Jul 18 12:14:47 UTC 2023


commit c549a2b59c6ae7bf96906067e47b643c116e0085
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Tue Jul 18 15:27:17 2023 +0200

    At end of children, language needs to be reset
    
    This amends 243b0ef90c09d5
---
 src/output_latex.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index 4dcbecd..c18a55b 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -1303,7 +1303,9 @@ void TeXOnePar(Buffer const & buf,
 		      // Since \selectlanguage write the language to the aux file,
 		      // we need to reset the language at the end of footnote or
 		      // float.
-		      || runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote))
+		      || runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote
+		      // Same for maintext in children (see below)
+		      || maintext))
 		 || close_lang_switch)
 	        && (par_lang != outer_lang || (using_begin_end
 						&& style.isEnvironment()


More information about the lyx-cvs mailing list