]> git.lyx.org Git - features.git/commitdiff
Do not track row/column deletion in paste_tabular
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 7 Jun 2020 17:18:00 +0000 (19:18 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 7 Jun 2020 17:18:00 +0000 (19:18 +0200)
Fixes #11884.

src/insets/InsetTabular.cpp

index b87ab343f287436ba228cb85a7f9ea294b2e8992..82cbfc7287c8bbe53b196a64628af57ee130585f 100644 (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.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)
 
        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)
 
        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)
 
        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());
 
 
        paste_tabular->setBuffer(tabular.buffer());