mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
When pasting several cells in mathed, take cursor position in account
Related to bug #11390
This commit is contained in:
parent
1d56ea325a
commit
ca5cac2b51
@ -1629,7 +1629,8 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest & cmd)
|
||||
for (row_type r = 0; r < numrows; ++r) {
|
||||
for (col_type c = 0; c < numcols; ++c) {
|
||||
idx_type i = index(r + cur.row(), c + col(cur.idx()));
|
||||
cell(i).insert(0, grid.cell(grid.index(r, c)));
|
||||
cell(i).insert(c == 0 ? cur.pos() : 0,
|
||||
grid.cell(grid.index(r, c)));
|
||||
}
|
||||
if (hline_enabled)
|
||||
rowinfo_[r].lines += grid.rowinfo_[r].lines;
|
||||
|
Loading…
Reference in New Issue
Block a user