From 3a251f00561614644bb473d5667c611061271663 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 9 Feb 2010 11:16:17 +0000 Subject: [PATCH] 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 --- src/insets/Inset.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index f626ca8ae4..b29737ac00 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -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()); } -- 2.39.2