X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeX.C;h=b1758d2749634a7e49bd69b3d7dbd7da588a73d2;hb=a858be7332e331e0244e4dba7b0931b6072ffd3d;hp=a4999fa2707b52ead0f720cd6da8b5d3cf236e88;hpb=d7dbc63467b8ddc07aaca9fa3c73b2b2325a9c5f;p=lyx.git diff --git a/src/LaTeX.C b/src/LaTeX.C index a4999fa270..b1758d2749 100644 --- a/src/LaTeX.C +++ b/src/LaTeX.C @@ -28,7 +28,7 @@ #include "support/lyxlib.h" #include "support/syscall.h" #include "support/syscontr.h" -#include "pathstack.h" +#include "support/path.h" #include "bufferlist.h" #include "minibuffer.h" #include "gettext.h" @@ -425,7 +425,7 @@ int LaTeX::operator()() string tmp = cmd + ' ' + file + " > nul"; #endif Systemcalls one; - return one.Startscript(Systemcalls::System, tmp); + return one.startscript(Systemcalls::System, tmp); } @@ -442,7 +442,7 @@ bool LaTeX::runMakeIndex(string const &file) string tmp = "makeindex -c -q "; tmp += file; Systemcalls one; - one.Startscript(Systemcalls::System, tmp); + one.startscript(Systemcalls::System, tmp); return true; } @@ -468,7 +468,7 @@ bool LaTeX::runBibTeX(string const &file) string tmp="bibtex "; tmp += ChangeExtension(file, string(), true); Systemcalls one; - one.Startscript(Systemcalls::System, tmp); + one.startscript(Systemcalls::System, tmp); return true; } @@ -682,7 +682,7 @@ void LaTeX::deplog(DepTable & head) // found in the same dir // as the .lyx file and // should be inserted. - PathPush(path); + Path p(path); if (FileInfo(foundfile).exist()) { lyxerr << "LyX Strange: this should actually never" " happen anymore, this it should be" @@ -691,10 +691,8 @@ void LaTeX::deplog(DepTable & head) lyxerr[Debug::LATEX] << "Same Directory file: " << foundfile << endl; head.insert(foundfile); - PathPop(); continue; } - PathPop(); lyxerr[Debug::LATEX] << "Not a file or we are unable to find it."