* Buffer.cpp: correctly set the flavor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36444 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-11-23 11:53:27 +00:00
parent 44aef91ea6
commit d165b5ea51

View File

@ -1218,8 +1218,6 @@ bool Buffer::makeLaTeXFile(FileName const & fname,
bool output_preamble, bool output_body) const
{
OutputParams runparams = runparams_in;
if (params().useXetex)
runparams.flavor = OutputParams::XETEX;
string const encoding = runparams.encoding->iconvName();
LYXERR(Debug::LATEX, "makeLaTeXFile encoding: " << encoding << "...");
@ -3408,6 +3406,8 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir,
// FIXME: Don't hardcode format names here, but use a flag
if (backend_format == "pdflatex")
runparams.flavor = OutputParams::PDFLATEX;
else if (backend_format == "xetex")
runparams.flavor = OutputParams::XETEX;
}
string filename = latexName(false);