Catch "! Incomplete \\if[x]" error

Fixes: #10666
This commit is contained in:
Juergen Spitzmueller 2017-06-16 10:05:12 +02:00
parent 5f08a1b41d
commit f7aabdd9fa
2 changed files with 9 additions and 0 deletions

View 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.")){ if (prefixIs(token, "! Paragraph ended before \\Hy@setref@link was complete.")){
// bug 7344. We must rerun LaTeX if hyperref has been toggled. // bug 7344. We must rerun LaTeX if hyperref has been toggled.
retval |= ERROR_RERUN; retval |= ERROR_RERUN;

View File

@ -47,6 +47,9 @@ What's new
- Assure properly nested \begin{lang} and \end{lang} tags even when - Assure properly nested \begin{lang} and \end{lang} tags even when
no language package is selected (bug 10685). no language package is selected (bug 10685).
- Catch "! Incomplete \if[x]" LaTeX error (bug 10666).
* LYX2LYX * LYX2LYX