[LyX/master] Do not use runparams.nice == true while exporting to docbook5

Kornel Benko kornel at lyx.org
Sat Oct 3 11:01:12 UTC 2020


commit a43d8501a2ce9649ec7394e14f1c45b877ff7a90
Author: Kornel Benko <kornel at lyx.org>
Date:   Sat Oct 3 13:28:26 2020 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 2ef5768..3fe0b9b 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;
 	}


More information about the lyx-cvs mailing list