mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
19efc7df45
commit
93593f8c15
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user