]> git.lyx.org Git - features.git/commitdiff
Catch "! Incomplete \\if[x]" error
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 16 Jun 2017 08:05:12 +0000 (10:05 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 16 Jun 2017 08:05:12 +0000 (10:05 +0200)
Fixes: #10666
src/LaTeX.cpp
status.22x

index 06add5bb6a2323835e19cd9e28e05614adc7846a..739a9926dd77fb171d56fda41db762d023d87203 100644 (file)
@@ -778,6 +778,12 @@ int LaTeX::scanLogFile(TeXErrors & terr)
                                }
                        }
 
+                       if (prefixIs(token, "! Incomplete \\if")) {
+                               // bug 10666. At this point its not clear we finish with error.
+                               wait_for_error = desc;
+                               continue;
+                       }
+
                        if (prefixIs(token, "! Paragraph ended before \\Hy@setref@link was complete.")){
                                        // bug 7344. We must rerun LaTeX if hyperref has been toggled.
                                        retval |= ERROR_RERUN;
index abda25426bc3ade3e2ba47dbb378544f76d74a9d..4a56ac4565797bd4a9cf52d2329512bf41eb3a3c 100644 (file)
@@ -47,6 +47,9 @@ What's new
 - Assure properly nested \begin{lang} and \end{lang} tags even when
   no language package is selected (bug 10685).
 
+- Catch "! Incomplete \if[x]" LaTeX error (bug 10666).
+
+
 * LYX2LYX