* 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
This commit is contained in:
Jürgen Spitzmüller 2007-11-05 10:46:39 +00:00
parent adfa69440d
commit 33d8394fbb

View File

@ -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)