]> git.lyx.org Git - features.git/commitdiff
tex2lyx/Parser.cpp: backport [fb64fe613/lyxgit] to fix the regression introduced...
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 10 Mar 2013 15:19:05 +0000 (16:19 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 10 Mar 2013 15:19:05 +0000 (16:19 +0100)
src/tex2lyx/Parser.cpp

index 0067f887219ee722e0a96d666d2bddf51f42b9ca..428f7efcd9bc4cf29725bab6bf581d6d3d13e6e8 100644 (file)
@@ -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())