From 63e26fa7786121c8ed896eda4c31a375680cf46e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 5 Aug 2010 21:32:19 +0000 Subject: [PATCH] Make sure the layout has actually been closed. Otherwise, you can have: Style NewStyle all by itself at the end of a file, and LyX is perfectly happy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35059 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Layout.cpp b/src/Layout.cpp index a9a5487b98..1f68979dd4 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -573,7 +573,7 @@ bool Layout::read(Lexer & lex, TextClass const & tclass) inpreamble = false; } - return !error; + return finished && !error; } -- 2.39.2