commit c549a2b59c6ae7bf96906067e47b643c116e0085 Author: Juergen Spitzmueller <sp...@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() -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs