mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* 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:
parent
44aef91ea6
commit
d165b5ea51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user