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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32792 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-06 17:36:22 +00:00
parent 5079badb65
commit c22298c97b

View File

@ -677,7 +677,7 @@ ParagraphList::const_iterator 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,