DispatchResult
MathGridInset::priv_dispatch(LCursor & cur, FuncRequest const & cmd)
{
+ //lyxerr << "*** MathGridInset: request: " << cmd << endl;
switch (cmd.action) {
case LFUN_MOUSE_RELEASE:
// GridInsetMailer(*this).showDialog();
// return DispatchResult(true, true);
//}
- return DispatchResult(false);
+ return MathNestInset::priv_dispatch(cur, cmd);
case LFUN_INSET_DIALOG_UPDATE:
GridInsetMailer(*this).updateDialog(&cur.bv());
//}
if (nrows() > 1)
delRow(cur.row());
- if (cur.idx() >= nargs())
- cur.idx() = nargs() - 1;
+ if (cur.idx() > cur.lastidx())
+ cur.idx() = cur.lastidx();
if (cur.pos() > cur.lastpos())
cur.pos() = cur.lastpos();
return DispatchResult(true, FINISHED);
case LFUN_CELL_SPLIT:
- //recordUndo(cur, Undo::ATOMIC);
+ ////recordUndo(cur, Undo::ATOMIC);
splitCell(cur);
return DispatchResult(true, FINISHED);
case LFUN_BREAKLINE: {
- //recordUndo(cur, Undo::INSERT);
+ ////recordUndo(cur, Undo::INSERT);
row_type const r = cur.row();
addRow(r);