diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 44e35ab607..a1d729d5c7 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2391,7 +2391,7 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir, makeDocBookFile(FileName(filename), runparams); } // LaTeX backend - else if (backend_format == format) { + else if (!put_in_tempdir) { runparams.nice = true; if (!makeLaTeXFile(FileName(filename), string(), runparams)) return false;