commit 7869960888963d4459a356c6639b2043448e3a0c
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Jun 29 18:05:46 2020 +0200
Fix math matrix column insertion on paste
---
src/mathed/InsetMathGrid.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index 6aaddc2..fa1aae4 100644
--- a/src/mathed/InsetMathGrid.cpp
+++ b/src/mathed/InsetMathGrid.cpp
@@ -1627,7 +1627,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest
& cmd)
col_type startcol = col(cur.idx());
row_type startrow = cur.row();
col_type oldncols = ncols();
- col_type const numcols =
+ col_type numcols =
min(grid.ncols(), ncols() - startcol);
row_type const numrows =
min(grid.nrows(), nrows() - cur.row());
@@ -1651,6 +1651,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest
& cmd)
addCol(c + 1);
idx_type i = index(r + cur.row(), c +
1);
cell(i).append(grid.cell(grid.index(r,
c)));
+ ++numcols;
}
}
// amend cursor position if cols have been appended
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs