]> git.lyx.org Git - features.git/commitdiff
Fix bug #11636.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 12 Sep 2019 00:54:42 +0000 (20:54 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 12 Sep 2019 02:16:44 +0000 (22:16 -0400)
Directories are created when files are copied, so we do not need
to do it prospectively here.

(cherry picked from commit 05a446b77c5eaeb8ba1982d900bd3ad6f6689139)

src/insets/InsetInclude.cpp
status.23x

index 19fbeae5166a9d0bbcf6915c3e5a6455efe9efed..9c00bbaa34ededea7be7a6345d66bb619cc6ab81 100644 (file)
@@ -537,7 +537,6 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
        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)
index 7f4232e45ecf9b208f71442b9b04fea77fd75df6..b32797a362147a1d9fd20ecd52980f8dee3398bf 100644 (file)
@@ -105,6 +105,9 @@ What's new
 - Fix LaTeX error with Canadian French as second language. LyX now uses
   the (recommended) babel option "acadian" rather than "canadien".
 
+- Do not create unnecessary directories when exporting from the command
+  line (bug 11636).
+
 
 * USER INTERFACE