]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.cpp
Rename BufferView::updateScrollbar to show what does
[lyx.git] / src / LaTeX.cpp
index 25dffb77a4ddf619a76a243c2c490608c8297e46..ce3d73eef2171ade4a6208e7ec64f3f7c2d00526 100644 (file)
@@ -36,9 +36,8 @@
 #include "support/Systemcall.h"
 #include "support/os.h"
 
-#include "support/regex.h"
-
 #include <fstream>
+#include <regex>
 #include <stack>
 
 
@@ -136,6 +135,7 @@ LaTeX::LaTeX(string const & latex, OutputParams const & rp,
 
 void LaTeX::removeAuxiliaryFiles() const
 {
+       LYXERR(Debug::LATEX, "Removing auxiliary files");
        // Note that we do not always call this function when there is an error.
        // For example, if there is an error but an output file is produced we
        // still would like to output (export/view) the file.
@@ -768,7 +768,7 @@ bool LaTeX::runBibTeX(vector<AuxInfo> const & bibtex_info,
                                it->aux_file.absFileName())));
                Systemcall one;
                Systemcall::Starttype const starttype = 
-               allow_cancel ? Systemcall::WaitLoop : Systemcall::Wait;
+                       allow_cancel ? Systemcall::WaitLoop : Systemcall::Wait;
                exit_code = one.startscript(starttype, tmp, path, lpath, true);
                if (exit_code) {
                        return result;
@@ -795,7 +795,7 @@ int LaTeX::scanLogFile(TeXErrors & terr)
        string tmp =
                onlyFileName(changeExtension(file.absFileName(), ".log"));
        LYXERR(Debug::LATEX, "Log file: " << tmp);
-       FileName const fn = FileName(makeAbsPath(tmp));
+       FileName const fn = makeAbsPath(tmp);
        // FIXME we should use an ifdocstream here and a docstring for token
        // below. The encoding of the log file depends on the _output_ (font)
        // encoding of the TeX file (T1, TU etc.). See #10728.