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
This commit is contained in:
Richard Heck 2009-07-15 19:20:53 +00:00
parent 19efc7df45
commit 93593f8c15
2 changed files with 1 additions and 3 deletions

View File

@ -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);

View File

@ -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;