From 0ca2622ab007b5d4a3486287d01e43774868ee7d Mon Sep 17 00:00:00 2001 From: rgheck Date: Wed, 15 Jul 2009 19:20:53 +0000 Subject: [PATCH] Fix crash related to empty buffer_ argument. Restore assertion removed at r30602. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30609 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.cpp | 2 +- src/mathed/InsetMathChar.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index c6fe84e8a0..b4ee451e6a 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -226,7 +226,7 @@ string insetName(InsetCode c) void Inset::dispatch(Cursor & cur, FuncRequest & cmd) { - //LASSERT(cur.buffer() == &buffer(), return); + LASSERT(cur.buffer() == buffer_, return); cur.updateFlags(Update::Force | Update::FitCursor); cur.dispatched(); doDispatch(cur, cmd); diff --git a/src/mathed/InsetMathChar.h b/src/mathed/InsetMathChar.h index a9b8c2eb54..ccfe0b4978 100644 --- a/src/mathed/InsetMathChar.h +++ b/src/mathed/InsetMathChar.h @@ -22,8 +22,6 @@ public: /// explicit InsetMathChar(char_type c); /// - void setBuffer(Buffer &) {} - /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo & pi, int x, int y) const; -- 2.11.4.GIT