mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Simplification
This commit is contained in:
parent
3aefd7477c
commit
55f7b337cc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user