]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #6258: LyX incorrectly interprets tetex warnings as errors.
authorEnrico Forestieri <forenr@lyx.org>
Sun, 4 Oct 2009 15:23:17 +0000 (15:23 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 4 Oct 2009 15:23:17 +0000 (15:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31514 a592a061-630c-0410-9148-cb99ea01b6c8

src/LaTeX.cpp

index b8a3d1a7833eb22609e0cb93ac47ae93e5839373..49968ffdc8a6884995b4f53ff166c66fe09b7b05 100644 (file)
@@ -671,7 +671,9 @@ int LaTeX::scanLogFile(TeXErrors & terr)
                                retval |= RERUN;
                        }
                } else if (prefixIs(token, "! ")
-                           || (fle_style && regex_match(token, sub, file_line_error))) {
+                           || (fle_style
+                               && regex_match(token, sub, file_line_error)
+                               && !contains(token, "pdfTeX warning"))) {
                           // Ok, we have something that looks like a TeX Error
                           // but what do we really have.