mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
We need to do the sanity check here, too, as we do in
Inset::getLayout(). Fixes the crash in bug #7069. My bad. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36515 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
a3e8adde24
commit
9a272ec26d
@ -45,6 +45,9 @@ InsetFlex::InsetFlex(InsetFlex const & in)
|
||||
|
||||
InsetLayout const & InsetFlex::getLayout() const
|
||||
{
|
||||
if (!buffer_)
|
||||
return DocumentClass::plainInsetLayout();
|
||||
|
||||
DocumentClass const & dc = buffer().params().documentClass();
|
||||
docstring const dname = from_utf8(name_);
|
||||
if (dc.hasInsetLayout(dname))
|
||||
|
Loading…
Reference in New Issue
Block a user