]> git.lyx.org Git - features.git/commitdiff
At end of children, language needs to be reset
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 18 Jul 2023 13:27:17 +0000 (15:27 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 18 Jul 2023 13:27:17 +0000 (15:27 +0200)
This amends 243b0ef90c09d5

src/output_latex.cpp

index 4dcbecd0240c5693236a2452a1434e5364b3a729..c18a55bedac84c5cdd10fe07cfa1c9c536795fc0 100644 (file)
@@ -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()