Fix crash by setting Layout before calling InsetText::read().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23081 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-02-20 16:56:33 +00:00
parent 66a1e2cb3d
commit 0902821097

View File

@ -184,10 +184,11 @@ void InsetCollapsable::read(Buffer const & buf, Lexer & lex)
lex.pushToken(token);
}
}
InsetText::read(buf, lex);
//this must be set before we enter InsetText::read()
setLayout(buf.params());
InsetText::read(buf, lex);
if (!token_found)
status_ = isOpen() ? Open : Collapsed;