Handle 'end_inset' gracefully.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8173 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-12-01 21:19:16 +00:00
parent cf20cb674b
commit 0aea5bd320
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2003-12-01 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetvspace.C (read): handle 'end_inset' token.
2003-12-01 Martin Vermeer <martin.vermeer@hut.fi>

View File

@ -86,6 +86,13 @@ void InsetVSpace::read(Buffer const &, LyXLex & lex)
lex.next();
space_ = VSpace(lex.getString());
}
if (lex.isOK())
lex.next();
if (lex.getString() != "\\end_inset") {
lex.printError("Missing \\end_inset at this point. "
"Read: `$$Token'");
}
}