Do not track row/column deletion in paste_tabular

Fixes #11884.
This commit is contained in:
Juergen Spitzmueller 2020-06-07 19:18:00 +02:00
parent f9ee1e16af
commit cbe75042c0

View File

@ -7064,18 +7064,18 @@ bool InsetTabular::copySelection(Cursor & cur)
paste_tabular.reset(new Tabular(tabular));
for (row_type r = 0; r < rs; ++r)
paste_tabular->deleteRow(0);
paste_tabular->deleteRow(0, true);
row_type const rows = re - rs + 1;
while (paste_tabular->nrows() > rows)
paste_tabular->deleteRow(rows);
paste_tabular->deleteRow(rows, true);
for (col_type c = 0; c < cs; ++c)
paste_tabular->deleteColumn(0);
paste_tabular->deleteColumn(0, true);
col_type const columns = ce - cs + 1;
while (paste_tabular->ncols() > columns)
paste_tabular->deleteColumn(columns);
paste_tabular->deleteColumn(columns, true);
paste_tabular->setBuffer(tabular.buffer());