Simplification

This commit is contained in:
Juergen Spitzmueller 2020-08-17 13:29:55 +02:00
parent 3aefd7477c
commit 55f7b337cc

View File

@ -1634,9 +1634,7 @@ 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 + startrow, c + startcol);
pos_type ipos = cur.pos() > pos_type(cell(i).size())
? pos_type(cell(i).size())
: cur.pos();
pos_type const ipos = min(cur.pos(), pos_type(cell(i).size()));
cell(i).insert(ipos, grid.cell(grid.index(r, c)));
}
if (hline_enabled)