From 0aea5bd320e6b6566b414464ba1ad0fd0027043c Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Mon, 1 Dec 2003 21:19:16 +0000 Subject: [PATCH] Handle 'end_inset' gracefully. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8173 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 3 +++ src/insets/insetvspace.C | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 39bceff435..5f58e4b955 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,6 @@ +2003-12-01 Georg Baum + + * insetvspace.C (read): handle 'end_inset' token. 2003-12-01 Martin Vermeer diff --git a/src/insets/insetvspace.C b/src/insets/insetvspace.C index 469d65589d..442c31cc30 100644 --- a/src/insets/insetvspace.C +++ b/src/insets/insetvspace.C @@ -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'"); + } }