]> git.lyx.org Git - features.git/commitdiff
Revert last two commits, which we pushed accidentally.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 12 Sep 2019 00:46:33 +0000 (20:46 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 12 Sep 2019 00:47:07 +0000 (20:47 -0400)
src/insets/InsetInclude.cpp

index 2c02002589d4d6e8b64564f21bb841d1bf27a350..281051541bcb04083f3d42fd89a4a5efe0dc0cc1 100755 (executable)
@@ -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;