]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetinclude.C
Real fix from Bernhard Roider
[lyx.git] / src / insets / insetinclude.C
index 53759778f8c6f7ca3d647515f2199936dd1ad382..c4cfdc685be25cfa65fcfe2cf0e2129bc843328b 100644 (file)
@@ -271,13 +271,13 @@ void InsetInclude::read(Buffer const &, LyXLex & lex)
 void InsetInclude::read(LyXLex & lex)
 {
        if (lex.isOK()) {
-               lex.next();
+               lex.eatLine();
                string const command = lex.getString();
                params_.scanCommand(command);
        }
        string token;
        while (lex.isOK()) {
-               lex.eatLine();
+               lex.next();
                token = lex.getString();
                if (token == "\\end_inset")
                        break;