diff --git a/src/LaTeX.C b/src/LaTeX.C index a37ee5b7ac..7590361926 100644 --- a/src/LaTeX.C +++ b/src/LaTeX.C @@ -665,7 +665,8 @@ void LaTeX::deplog(DepTable & head) // On initial insert we want to do the update at once // since this file can not be a file generated by // the latex run. - head.insert(foundfile, true); + if (FileInfo(foundfile).exist()) + head.insert(foundfile, true); continue; }