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
This commit is contained in:
Richard Heck 2010-08-05 21:32:19 +00:00
parent 87600d4d84
commit 63e26fa778

View File

@ -573,7 +573,7 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
inpreamble = false;
}
return !error;
return finished && !error;
}