From 70ebf64c3f6d103410bd27c51cb743f0aa8ad5a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sun, 10 Mar 2013 16:19:05 +0100 Subject: [PATCH] tex2lyx/Parser.cpp: backport [fb64fe613/lyxgit] to fix the regression introduced after the release of LyX 2.0.5 (bug #8525) --- src/tex2lyx/Parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tex2lyx/Parser.cpp b/src/tex2lyx/Parser.cpp index 0067f88721..428f7efcd9 100644 --- a/src/tex2lyx/Parser.cpp +++ b/src/tex2lyx/Parser.cpp @@ -400,7 +400,8 @@ Parser::Arg Parser::getFullArg(char left, char right, bool allow_escaping) putback(); return make_pair(false, string()); } else { - for (t = get_token(); good(); t = get_token()) { + while (good()) { + t = get_token(); // Ignore comments if (t.cat() == catComment) { if (!t.cs().empty()) -- 2.39.5