]> git.lyx.org Git - features.git/commitdiff
Delete .out files after compilation errors (#9963)
authorGuillaume Munch <gm@lyx.org>
Tue, 23 Feb 2016 23:57:12 +0000 (23:57 +0000)
committerGuillaume Munch <gm@lyx.org>
Sun, 28 Feb 2016 19:09:21 +0000 (19:09 +0000)
This treats the symptom, not the bug.

src/LaTeX.cpp

index 37c8703b0d125a0c597c143dc1859794d56301cf..6063d807196c92f6a16dde7833e33b507c38aec3 100644 (file)
@@ -148,6 +148,10 @@ void LaTeX::removeAuxiliaryFiles() const
        FileName const aux(changeExtension(file.absFileName(), ".aux"));
        aux.removeFile();
 
+       // Also remove the .out file (e.g. hyperref bookmarks) (#9963)
+       FileName const out(changeExtension(file.absFileName(), ".out"));
+       out.removeFile();
+
        // Remove the output file, which is often generated even if error
        output_file.removeFile();
 }