From b01b9b5e84365ab1d92d2af88d3a0ce9431ebed8 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 4 Oct 2009 15:23:17 +0000 Subject: [PATCH] Fix bug #6258: LyX incorrectly interprets tetex warnings as errors. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31514 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index b8a3d1a783..49968ffdc8 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -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.