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
This commit is contained in:
Uwe Stöhr 2007-05-11 23:43:17 +00:00
parent 6bebcf8feb
commit ff8f2b3609

View File

@ -115,8 +115,8 @@ TeXEnvironment(Buffer const & buf,
texrow.newline(); texrow.newline();
} }
if (lyxrc.language_command_end.empty() || if ((lyxrc.language_command_end.empty() ||
par_language->babel() != doc_language->babel() && par_language->babel() != doc_language->babel()) &&
!par_language->babel().empty()) { !par_language->babel().empty()) {
os << from_ascii(subst( os << from_ascii(subst(
lyxrc.language_command_begin, lyxrc.language_command_begin,
@ -283,10 +283,9 @@ TeXOnePar(Buffer const & buf,
texrow.newline(); texrow.newline();
} }
if (lyxrc.language_command_end.empty() || if ((lyxrc.language_command_end.empty() ||
par_language->babel() != doc_language->babel() && par_language->babel() != doc_language->babel()) &&
!par_language->babel().empty()) !par_language->babel().empty()) {
{
os << from_ascii(subst( os << from_ascii(subst(
lyxrc.language_command_begin, lyxrc.language_command_begin,
"$$lang", "$$lang",