]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.C
removed a warning from screen and added CFLAGS in lyx.spec.in.
[lyx.git] / src / LaTeX.C
index a4999fa2707b52ead0f720cd6da8b5d3cf236e88..b1758d2749634a7e49bd69b3d7dbd7da588a73d2 100644 (file)
@@ -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."