From: Enrico Forestieri Date: Mon, 19 Oct 2009 10:29:15 +0000 (+0000) Subject: The current buffer is the master of an included file, not the grandmaster. X-Git-Tag: 2.0.0~5345 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ba9d500de43951d3b1fd8ca610a26179d7bc24a0;p=features.git The current buffer is the master of an included file, not the grandmaster. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31677 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index a963f073a8..4a41f523a8 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -544,7 +544,7 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const Encoding const * const oldEnc = runparams.encoding; Language const * const oldLang = runparams.master_language; runparams.encoding = &tmp->params().encoding(); - runparams.master_language = masterBuffer->params().language; + runparams.master_language = buffer().params().language; tmp->makeLaTeXFile(writefile, masterFileName(buffer()).onlyPath().absFilename(), runparams, false);