]> git.lyx.org Git - features.git/commitdiff
Fix undo with cell-plit
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 21 Apr 2023 12:42:51 +0000 (14:42 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 21 Apr 2023 12:42:51 +0000 (14:42 +0200)
This function modifies several cells.

Fixes bug #12746.

src/mathed/InsetMathGrid.cpp

index 65cd6621be475ee8d13826b6d551bf6518c3a332..3adec0ca2be80f6116f92be46ad9a915039aa85b 100644 (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;