Skip to content

Table numberOfRows increment on no columns#468

Merged
f3l1x98 merged 1 commit intomainfrom
bugfix/table-empty-rows
Nov 13, 2023
Merged

Table numberOfRows increment on no columns#468
f3l1x98 merged 1 commit intomainfrom
bugfix/table-empty-rows

Conversation

@f3l1x98
Copy link
Contributor

@f3l1x98 f3l1x98 commented Nov 13, 2023

As discussed in #458 (comment)

This PR fixes the issue that the numberOfRows of a Table is incremented during addRow if the table contains no columns and the length of the row to be added is 0.
This causes the table to indicate that it contains data (because table.getNumberOfRows() > 0) without containing any data.

Note: Currently this is only documented using jsdoc (and the comments/PRs in GitHub).

@f3l1x98 f3l1x98 merged commit f014d7a into main Nov 13, 2023
@f3l1x98 f3l1x98 deleted the bugfix/table-empty-rows branch November 13, 2023 12:15
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants