fix assertion in Inset::getLayout when there is no buffer (bug #6497)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33377 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2010-02-09 11:16:17 +00:00
parent 5adefc1ffe
commit 3a251f0056

View File

@ -523,6 +523,8 @@ bool Inset::covers(BufferView const & bv, int x, int y) const
InsetLayout const & Inset::getLayout() const
{
if (!buffer_)
return DocumentClass::plainInsetLayout();
return buffer().params().documentClass().insetLayout(name());
}