[LyX/2.5.x] Amend be91c6b24af6
Juergen Spitzmueller <[email protected]>
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 36020c97c50a0100491d161a447a01e2424ad852 Author: Juergen Spitzmueller <[email protected]> Date: Fri Mar 20 12:28:07 2026 +0100 Amend be91c6b24af6 Main language is not in the stack with lyxrc.language_auto_begin (cherry picked from commit 4b0b59f2f8436ebabc606659965fb51802f141a8) --- src/output_latex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 79dd935767..ac37d7585d 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -400,7 +400,7 @@ static void finishEnvironment(otexstream & os, OutputParams const & runparams, // the language needs to be closed after the environment // if it is not the main language if (lastpar && using_begin_end && langOpenedAtThisLevel(state) - && state->lang_switch_depth_.size() > 1) { + && (state->lang_switch_depth_.size() > 1 || lyxrc.language_auto_begin)) { if (isLocalSwitch(state)) { os << "}"; } else { -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs