mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +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/branches/BRANCH_1_5_X@21434 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2929845c7f
commit
306dcd3916
@ -1162,6 +1162,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())
|
||||
@ -1200,6 +1201,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)
|
||||
|
@ -82,6 +82,9 @@ What's new
|
||||
|
||||
- Fix a crash when pasting into a math formula (bug 4318).
|
||||
|
||||
- Fix a crash when deleting a row or column of a math matrix while its
|
||||
content is selected (bug 4323).
|
||||
|
||||
- Fix updating of externally modified files on Windows (bug 3172).
|
||||
|
||||
- Repair wasy font such that it can also be used on Mac (bug 2326).
|
||||
|
Loading…
Reference in New Issue
Block a user