Fix undo with cell-plit

This function modifies several cells.

Fixes bug #12746.
This commit is contained in:
Jean-Marc Lasgouttes 2023-04-21 14:42:51 +02:00
parent d0d9e82eee
commit f7afcc31fe

View File

@ -1413,7 +1413,8 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
break;
case LFUN_CELL_SPLIT:
cur.recordUndo();
// undo needs to cover two cells
cur.recordUndoInset();
splitCell(cur);
break;