mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-03 14:13:58 +00:00
* LaTeX.cpp: fix bug #7344 (delete aux files and rerun LaTeX if hyperref has been toggled)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37883 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
53e8746b47
commit
427b8e3f97
@ -745,11 +745,18 @@ int LaTeX::scanLogFile(TeXErrors & terr)
|
||||
if (contains(token, "LaTeX Error:"))
|
||||
retval |= LATEX_ERROR;
|
||||
|
||||
// bug 6445. At this point its not clear we finish with error.
|
||||
if (prefixIs(token, "! File ended while scanning")){
|
||||
wait_for_error = desc;
|
||||
continue;
|
||||
if (prefixIs(token, "! File ended while scanning use of \\Hy@setref@link.")){
|
||||
// bug 7344. We must rerun LaTeX if hyperref has been toggled.
|
||||
retval |= ERROR_RERUN;
|
||||
LYXERR(Debug::LATEX, "Force rerun.");
|
||||
} else {
|
||||
// bug 6445. At this point its not clear we finish with error.
|
||||
wait_for_error = desc;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!wait_for_error.empty() && prefixIs(token, "! Emergency stop.")){
|
||||
retval |= LATEX_ERROR;
|
||||
string errstr;
|
||||
|
Loading…
Reference in New Issue
Block a user