From a43d8501a2ce9649ec7394e14f1c45b877ff7a90 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 3 Oct 2020 13:28:26 +0200 Subject: [PATCH] Do not use runparams.nice == true while exporting to docbook5 The setting implies that the variable external_in_tmpdir is set to false. If a lyx-file includes external material for spreadsheet, the conversion results are in tmpdir. The routine doSubstitution() (insets/ExternalSupport.cpp:188) therefore does nothing for the entry $$Contents because it uses wrong path. --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 2ef5768771..3fe0b9bce2 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4469,7 +4469,7 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir // DocBook backend else if (backend_format == "docbook5") { runparams.flavor = OutputParams::DOCBOOK5; - runparams.nice = !put_in_tempdir; + runparams.nice = false; if (makeDocBookFile(FileName(filename), runparams) == ExportKilled) return ExportKilled; }