mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
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:
parent
66a1e2cb3d
commit
0902821097
@ -184,10 +184,11 @@ void InsetCollapsable::read(Buffer const & buf, Lexer & lex)
|
|||||||
lex.pushToken(token);
|
lex.pushToken(token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
InsetText::read(buf, lex);
|
//this must be set before we enter InsetText::read()
|
||||||
|
|
||||||
setLayout(buf.params());
|
setLayout(buf.params());
|
||||||
|
|
||||||
|
InsetText::read(buf, lex);
|
||||||
|
|
||||||
if (!token_found)
|
if (!token_found)
|
||||||
status_ = isOpen() ? Open : Collapsed;
|
status_ = isOpen() ? Open : Collapsed;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user