]> git.lyx.org Git - features.git/commitdiff
The current buffer is the master of an included file, not the grandmaster.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 19 Oct 2009 10:29:15 +0000 (10:29 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 19 Oct 2009 10:29:15 +0000 (10:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31677 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetInclude.cpp

index a963f073a828d677b1347dbc68e2c66d923f680a..4a41f523a8800304a37bc9f2d8266c3bcd8b5d3a 100644 (file)
@@ -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);