[LyX/2.3.x] Fix crash when using Hebrew (bug 12464)

Juergen Spitzmueller spitz at lyx.org
Wed Nov 23 10:34:28 UTC 2022


commit cd37ddc52c3dacd7de93482f67cc77a3328af4c8
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Wed Nov 23 12:28:59 2022 +0100

    Fix crash when using Hebrew (bug 12464)
---
 src/output_latex.cpp |    2 +-
 status.23x           |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/output_latex.cpp b/src/output_latex.cpp
index eae5b3c..5fb8c8d 100644
--- a/src/output_latex.cpp
+++ b/src/output_latex.cpp
@@ -1575,7 +1575,7 @@ void latexParagraphs(Buffer const & buf,
 			<< '\n';
 		// If we have language_auto_begin, the stack will
 		// already be empty, nothing to pop()
-		if (using_begin_end && !lyxrc.language_auto_begin)
+		if (using_begin_end && langOpenedAtThisLevel(state))
 			popLanguageName();
 	}
 
diff --git a/status.23x b/status.23x
index 1c76684..8755880 100644
--- a/status.23x
+++ b/status.23x
@@ -107,6 +107,8 @@ What's new
 
 - Fix crash in tabular when resetting font (bug 12566).
 
+- Fix crash when using Hebrew (bug 12464).
+
 - On screen, show upper case greek letters in \mathbf as bold (bug 3751).
 
 - Fix coloring of text-mode material in math equations (bug 11007).


More information about the lyx-cvs mailing list