]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.cpp
MSVC does not define WIN32 but _WIN32.
[lyx.git] / src / LaTeX.cpp
index 04b63e3a6877c98e479464fde0cfe70a1e1fbfbd..f0a33ff8e7b5062379ee7552b94289ce31fa5b46 100644 (file)
@@ -785,12 +785,13 @@ bool handleFoundFile(string const & ff, DepTable & head)
        // (1) foundfile is an
        //     absolute path and should
        //     be inserted.
-       FileName absname(foundfile);
-       if (absname.isAbsolute()) {
+       FileName absname;
+       if (FileName::isAbsolute(foundfile)) {
                LYXERR(Debug::DEPEND, "AbsolutePath file: " << foundfile);
                // On initial insert we want to do the update at once
                // since this file cannot be a file generated by
                // the latex run.
+               absname.set(foundfile);
                if (!insertIfExists(absname, head)) {
                        // check for spaces
                        string strippedfile = foundfile;