[LyX/master] Move comment to where it belongs

Juergen Spitzmueller spitz at lyx.org
Sun Jul 16 13:33:19 UTC 2023


commit b397c78b70fc471ca9aa8398298a2343079d5f56
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Jul 16 16:46:02 2023 +0200

    Move comment to where it belongs
---
 src/output_latex.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index ebe4c69..4dcbecd 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -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()


More information about the lyx-cvs mailing list