From: Richard Heck Date: Wed, 15 Jul 2009 19:20:53 +0000 (+0000) Subject: Fix crash related to empty buffer_ argument. X-Git-Tag: 2.0.0~6005 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=93593f8c154ff25328f1f25d42d0235f32400f00;p=features.git 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 --- 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;