From 5f7c6b8964b1f369bf110a236fb3075ff2938140 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 20 Jun 2009 13:02:12 +0000 Subject: [PATCH] * LaTeX.cpp (deplog): - fix regex so that rexeg_search finds more than one match in a line. This fixes a bug where files which were output in the log file in a line which already listed another file were not dependency tracked. I.e., cases such as (./child1.tex) (./child2.tex) (bug 6024). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30198 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp index 658c5f5519..b8a3d1a783 100644 --- a/src/LaTeX.cpp +++ b/src/LaTeX.cpp @@ -1025,7 +1025,7 @@ void LaTeX::deplog(DepTable & head) // where "File: file.ext" would be skipped if (regex_match(token, sub, reg6)) { // search for strings in (...) - static regex reg6_1("\\(([^()]+)(.).*"); + static regex reg6_1("\\(([^()]+)(.)"); smatch what; string::const_iterator first = token.begin(); string::const_iterator end = token.end(); -- 2.39.2