]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Fix #10778 (issue with CJK and language nesting)
[lyx.git] / src / Paragraph.cpp
index 859896900f315096b027f2b82cf51403fda337d9..6f514863de831fb780cfc3cfe027406bd92835e2 100644 (file)
@@ -2542,6 +2542,7 @@ void Paragraph::latex(BufferParams const & bparams,
                bool const using_begin_end = runparams.use_polyglossia ||
                                                !lang_end_command.empty();
                if (!running_lang.empty() &&
+                   (!using_begin_end || running_lang == openLanguageName()) &&
                    current_font.language()->encoding()->package() == Encoding::CJK) {
                                string end_tag = subst(lang_end_command,
                                                        "$$lang",