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.
This commit is contained in:
Kornel Benko 2020-10-03 13:28:26 +02:00
parent efc0877f8f
commit a43d8501a2

View File

@ -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;
}