From: Uwe Stöhr Date: Fri, 11 May 2007 23:43:17 +0000 (+0000) Subject: output_latex.cpp: Fix bug 3571: X-Git-Tag: 1.6.10~9813 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ff8f2b3609b077e5bc6055a01eb3dcf61cbdf39a;p=features.git 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 --- 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",