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:
Richard Heck 2010-11-26 16:45:58 +00:00
parent a3e8adde24
commit 9a272ec26d

View File

@ -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))