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
This commit is contained in:
Enrico Forestieri 2009-10-19 10:29:15 +00:00
parent 8355b32381
commit ba9d500de4

View File

@ -544,7 +544,7 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
Encoding const * const oldEnc = runparams.encoding; Encoding const * const oldEnc = runparams.encoding;
Language const * const oldLang = runparams.master_language; Language const * const oldLang = runparams.master_language;
runparams.encoding = &tmp->params().encoding(); runparams.encoding = &tmp->params().encoding();
runparams.master_language = masterBuffer->params().language; runparams.master_language = buffer().params().language;
tmp->makeLaTeXFile(writefile, tmp->makeLaTeXFile(writefile,
masterFileName(buffer()).onlyPath().absFilename(), masterFileName(buffer()).onlyPath().absFilename(),
runparams, false); runparams, false);