diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index f8d19a747c..e6aa888c0e 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -758,6 +758,12 @@ int LaTeX::scanLogFile(TeXErrors & terr) ++num_errors; } } + + 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; + LYXERR(Debug::LATEX, "Force rerun."); + } } else { // information messages, TeX warnings and other // warnings we have not caught earlier. diff --git a/status.16x b/status.16x index 44193340c4..a9ee3059c7 100644 --- a/status.16x +++ b/status.16x @@ -56,6 +56,8 @@ What's new - When exporting, alert about uncodable characters in child docs (bug 7326). +- Prevent LaTeX error when toggling hyperref (bug 7344). + * USER INTERFACE