commit 26813996e2bdb4a71c9200729844e3cfe8feda78
Author: Richard Kimberly Heck <[email protected]>
Date:   Wed Sep 11 20:29:58 2019 -0400

    Constify, largely for debugging purposes
---
 src/insets/InsetInclude.cpp |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index 2810515..c889f1c 100755
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -569,11 +569,9 @@ void InsetInclude::latex(otexstream & os, OutputParams 
const & runparams) const
                                              
from_utf8(masterBuffer->filePath())));
        }
 
-       string exppath = incfile;
-       if (!runparams.export_folder.empty()) {
-               exppath = makeAbsPath(exppath, 
runparams.export_folder).realPath();
-               FileName(exppath).onlyPath().createPath();
-       }
+       string const exppath = runparams.export_folder.empty() ?
+                       incfile :
+                       makeAbsPath(exppath, 
runparams.export_folder).realPath();
 
        // write it to a file (so far the complete file)
        string exportfile;

Reply via email to