]> git.lyx.org Git - features.git/commitdiff
Move comment to where it belongs
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Jul 2023 14:46:02 +0000 (16:46 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 16 Jul 2023 14:46:02 +0000 (16:46 +0200)
src/output_latex.cpp

index ebe4c69d38eaff17f35f769215f49d2338fa34ef..4dcbecd0240c5693236a2452a1434e5364b3a729 100644 (file)
@@ -1298,11 +1298,12 @@ void TeXOnePar(Buffer const & buf,
        if (localswitch_needed
            || (intitle_command && using_begin_end)
            || closing_rtl_ltr_environment
-               // Since \selectlanguage write the language to the aux file,
-               // we need to reset the language at the end of footnote or
-               // float.
            || (((runparams.isLastPar
-                 && (using_begin_end || runparams.inFloat != OutputParams::NONFLOAT || runparams.inFootnote))
+                 && (using_begin_end
+                     // 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))
                 || close_lang_switch)
                && (par_lang != outer_lang || (using_begin_end
                                                && style.isEnvironment()