lastColumn of a table must also be adjusted when columns are deleted. Fixes #736

pull/294/merge
Oliver 2 years ago
parent 12a29444c8
commit 04a46906d2

@ -329,6 +329,9 @@ func (t *tableDefaultContent) RemoveColumn(column int) {
}
t.cells[row] = append(t.cells[row][:column], t.cells[row][column+1:]...)
}
if column >= 0 && column <= t.lastColumn {
t.lastColumn--
}
}
// InsertRow inserts a new row at the given position.

Loading…
Cancel
Save