mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
5adefc1ffe
commit
3a251f0056
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user