From: Uwe Stöhr Date: Sun, 10 Mar 2013 15:19:05 +0000 (+0100) Subject: tex2lyx/Parser.cpp: backport [fb64fe613/lyxgit] to fix the regression introduced... X-Git-Tag: 2.0.6~76 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=70ebf64c3f6d103410bd27c51cb743f0aa8ad5a6;p=features.git tex2lyx/Parser.cpp: backport [fb64fe613/lyxgit] to fix the regression introduced after the release of LyX 2.0.5 (bug #8525) --- 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())