From: Georg Baum Date: Thu, 25 Jan 2007 21:12:12 +0000 (+0000) Subject: Real fix from Bernhard Roider X-Git-Tag: 1.6.10~11062 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=27a777ccc624b19c5d1961a6279c0db97594c0fb;p=lyx.git Real fix from Bernhard Roider git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16857 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index 53759778f8..c4cfdc685b 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -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;