]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathGrid.cpp
Attempt to fix #8137 (arrived at r40862).
[lyx.git] / src / mathed / InsetMathGrid.cpp
index 87f7d4b4f533a8d7f5f214813bf683eb51b3df4a..ac8cd491acb8d50dafc3e132722550a1810fb381 100644 (file)
@@ -184,7 +184,6 @@ bool InsetMathGrid::interpretString(Cursor & cur, docstring const & str)
                FuncStatus status;
                if (getStatus(cur, fr, status)) {
                        if (status.enabled()) {
-                               cur.recordUndoInset();
                                rowinfo_[cur.row()].lines_++;
                                return true;
                        }
@@ -1357,7 +1356,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
                        hline_enabled = status.enabled();
                if (grid.nargs() == 1) {
                        // single cell/part of cell
-                       cur.recordUndo();
+                       cur.recordUndoInset();
                        cur.cell().insert(cur.pos(), grid.cell(0));
                        cur.pos() += grid.cell(0).size();
                        if (hline_enabled)