From a20f3a0d52ab86e8345a5be4e73b69867e47093f Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Wed, 11 Sep 2019 20:46:33 -0400 Subject: [PATCH] Revert last two commits, which we pushed accidentally. --- src/insets/InsetInclude.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 2c02002589..281051541b 100755 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -569,10 +569,11 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const from_utf8(masterBuffer->filePath()))); } - string const exppath = runparams.export_folder.empty() ? - incfile : - makeAbsPath(exppath, runparams.export_folder).realPath(); - FileName(exppath).onlyPath().createPath(); + string exppath = incfile; + if (!runparams.export_folder.empty()) { + exppath = makeAbsPath(exppath, runparams.export_folder).realPath(); + FileName(exppath).onlyPath().createPath(); + } // write it to a file (so far the complete file) string exportfile; -- 2.39.2