Fix implicit RollUp/RollDown creating explicit cells

This commit is contained in:
manongjohn 2023-05-30 20:56:32 -04:00
parent bb2555b9b1
commit 1b3bc5098c

View file

@ -1062,7 +1062,7 @@ void TXsheet::rollupCells(int r0, int c0, int r1, int c1) {
// in cells copio il contenuto delle celle che mi interessano // in cells copio il contenuto delle celle che mi interessano
int k; int k;
for (k = c0; k <= c1; k++) cells[k - c0] = getCell(CellPosition(r0, k)); for (k = c0; k <= c1; k++) cells[k - c0] = getCell(CellPosition(r0, k), false);
for (k = c0; k <= c1; k++) removeCells(r0, k, 1); for (k = c0; k <= c1; k++) removeCells(r0, k, 1);
@ -1085,7 +1085,7 @@ void TXsheet::rolldownCells(int r0, int c0, int r1, int c1) {
// in cells copio il contenuto delle celle che mi interessano // in cells copio il contenuto delle celle che mi interessano
int k; int k;
for (k = c0; k <= c1; k++) cells[k - c0] = getCell(CellPosition(r1, k)); for (k = c0; k <= c1; k++) cells[k - c0] = getCell(CellPosition(r1, k), false);
for (k = c0; k <= c1; k++) removeCells(r1, k, 1); for (k = c0; k <= c1; k++) removeCells(r1, k, 1);