+2005-07-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * math_gridinset.C (doDispatch): use recordUndoInset when more than
+ one cell is changed
+
2005-07-06 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_gridinset.C (doDispatch): better fix for the assertion
// insert file functions
case LFUN_DELETE_LINE_FORWARD:
- recordUndo(cur);
+ recordUndoInset(cur);
//autocorrect_ = false;
//macroModeClose();
//if (selection_) {
break;
case LFUN_BREAKLINE: {
- recordUndo(cur);
+ recordUndoInset(cur);
row_type const r = cur.row();
addRow(r);
}
case LFUN_TABULAR_FEATURE: {
- recordUndo(cur);
+ recordUndoInset(cur);
//lyxerr << "handling tabular-feature " << cmd.argument << endl;
istringstream is(cmd.argument);
string s;
}
case LFUN_PASTE: {
- recordUndo(cur);
lyxerr << "MathGridInset: PASTE: " << cmd << std::endl;
istringstream is(cmd.argument);
int n = 0;
mathed_parse_normal(grid, lyx::cap::getSelection(cur.buffer(), n));
if (grid.nargs() == 1) {
// single cell/part of cell
+ recordUndo(cur);
cur.cell().insert(cur.pos(), grid.cell(0));
cur.pos() += grid.cell(0).size();
} else {
// multiple cells
+ recordUndoInset(cur);
col_type const numcols =
min(grid.ncols(), ncols() - col(cur.idx()));
row_type const numrows =
#if 0
// FIXME: What did this code do?
- // Please check wether it is still needed!
+ // Please check whether it is still needed!
// should be more precise
if (v_align_ == '\0') {
flag.enable(true);