commit d0cbcda3b9c1fd37cdaf2de040a383e084706838
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Jun 30 17:23:58 2020 +0200
Fix yet another thinko in the math grid paste code
This is a Hydra!
---
src/mathed/InsetMathGrid.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp
index f4e868e..9c0dca3 100644
--- a/src/mathed/InsetMathGrid.cpp
+++ b/src/mathed/InsetMathGrid.cpp
@@ -1624,7 +1624,7 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest
& cmd)
} else {
// multiple cells
cur.recordUndoInset();
- col_type startcol = col(cur.idx());
+ col_type startcol = col(cur.idx());
row_type startrow = cur.row();
col_type oldncols = ncols();
col_type numcols =
@@ -1648,8 +1648,8 @@ void InsetMathGrid::doDispatch(Cursor & cur, FuncRequest
& cmd)
}
// append columns for the left over horizontal
cells
for (InsetMath::col_type c = numcols; c <
grid.ncols(); ++c) {
- addCol(c + 1);
- idx_type i = index(r + startrow, c + 1);
+ addCol(c + startcol);
+ idx_type i = index(r + startrow, c +
startcol);
cell(i).append(grid.cell(grid.index(r,
c)));
++numcols;
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs