mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
* 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:
parent
adfa69440d
commit
33d8394fbb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user