From ff8f2b3609b077e5bc6055a01eb3dcf61cbdf39a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Fri, 11 May 2007 23:43:17 +0000 Subject: [PATCH] output_latex.cpp: Fix bug 3571: http://bugzilla.lyx.org/show_bug.cgi?id=3571 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18273 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_latex.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 152fd89e09..96502ccb62 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -115,8 +115,8 @@ TeXEnvironment(Buffer const & buf, texrow.newline(); } - if (lyxrc.language_command_end.empty() || - par_language->babel() != doc_language->babel() && + if ((lyxrc.language_command_end.empty() || + par_language->babel() != doc_language->babel()) && !par_language->babel().empty()) { os << from_ascii(subst( lyxrc.language_command_begin, @@ -283,10 +283,9 @@ TeXOnePar(Buffer const & buf, texrow.newline(); } - if (lyxrc.language_command_end.empty() || - par_language->babel() != doc_language->babel() && - !par_language->babel().empty()) - { + if ((lyxrc.language_command_end.empty() || + par_language->babel() != doc_language->babel()) && + !par_language->babel().empty()) { os << from_ascii(subst( lyxrc.language_command_begin, "$$lang", -- 2.39.2