From 33d8394fbbdc7df974c7a12e58bb6e1889feec22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 5 Nov 2007 10:46:39 +0000 Subject: [PATCH] * src/mathed/InsetMathGrid.cpp: - clear selection before deleting row/column (fix bug 4323/1). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21433 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathGrid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index f4f70b2b2d..da27366a7c 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -1161,6 +1161,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd) for (int i = 0, n = extractInt(is); i < n; ++i) appendRow(cur.row()); else if (s == "delete-row") { + cur.clearSelection(); // bug 4323 for (int i = 0, n = extractInt(is); i < n; ++i) { delRow(cur.row()); if (cur.idx() >= nargs()) @@ -1199,6 +1200,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd) cur.idx() = index(r, c); } else if (s == "delete-column") { + cur.clearSelection(); // bug 4323 row_type const r = cur.row(); col_type const c = cur.col(); for (int i = 0, n = extractInt(is); i < n; ++i) -- 2.39.5