From 57a34827df7f2991cf204083086799642efdc214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 21 Mar 2011 09:18:25 +0000 Subject: [PATCH] backport r37909: Author: spitz Date: Sun Mar 13 12:57:01 2011 New Revision: 37909 URL: http://www.lyx.org/trac/changeset/37909 Log: * LaTeX.cpp: fix another variant of bug #7344 (delete aux files and rerun LaTeX if hyperref has been toggled) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37981 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.cpp | 6 ++++++ status.16x | 2 ++ 2 files changed, 8 insertions(+) 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