From 35b4e73a11c1014bb3d3c1e0a11e141c73945580 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 20 Jul 2009 18:21:26 +0000 Subject: [PATCH] Disable this assertion for now, and replace it with some messages. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30715 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index ef5c17856f..ac42438b9d 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -279,7 +279,11 @@ string insetName(InsetCode c) void Inset::dispatch(Cursor & cur, FuncRequest & cmd) { - LASSERT(cur.buffer() == &buffer(), return); + if (buffer_ == 0) { + lyxerr << "Unassigned buffer_ member in Inset::dispatch()" << std::endl; + lyxerr << "LyX Code: " << lyxCode() << " name: " << insetName(lyxCode()) << std::endl; + } else if (cur.buffer() != buffer_) + lyxerr << "cur.buffer() != buffer_ in Inset::dispatch()" << std::endl; cur.updateFlags(Update::Force | Update::FitCursor); cur.dispatched(); doDispatch(cur, cmd); -- 2.39.2