branch: Fix bug #6387: Incorrect selectlanguage command at end of document.

see r32792.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32808 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-06 21:02:07 +00:00
parent 39d43fcd78
commit 237be3e41d
2 changed files with 4 additions and 1 deletions

View File

@ -681,7 +681,7 @@ TeXOnePar(Buffer const & buf,
(nextpit == paragraphs.end()
&& runparams.master_language)
? runparams.master_language
: prev_language;
: outer_language;
if (!current_language->babel().empty()) {
os << from_ascii(subst(
lyxrc.language_command_begin,

View File

@ -79,6 +79,9 @@ What's new
- Do not insert \foreignlanguage in ERTs (bug 6426).
- Reset the language at the end of the document to the correct
language (bug 6387).
* USER INTERFACE