Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recalibrate Row/Column Dimensions After removeRow/Col #2486

Merged
merged 2 commits into from
Jan 14, 2022

Conversation

oleibman
Copy link
Collaborator

@oleibman oleibman commented Jan 4, 2022

Fix #2442. Although data and styles are handled correctly after removing row(s) or column(s), the dimensions of the removed rows and columns remain behind to afflict their replacements. This PR will take care of removing the dimensions as well.

Dimensions has a _clone method for a deep clone, but all of its properties, as well as the properties of RowDimensions and ColumnDimensions, are scalars, and do not require a deep clone. The method is deleted.

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

Owen Leibman and others added 2 commits January 3, 2022 19:37
Fix PHPOffice#2442. Although data and styles are handled correctly after removing row(s) or column(s), the dimensions of the removed rows and columns remain behind to afflict their replacements. This PR will take care of removing the dimensions as well.

Dimensions has a _clone method for a deep clone, but all of its properties, as well as the properties of RowDimensions and ColumnDimensions, are scalars, and do not require a deep clone. The method is deleted.
@oleibman oleibman merged commit 1509097 into PHPOffice:master Jan 14, 2022
@oleibman oleibman deleted the removerowcol branch February 6, 2022 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

removeRow
1 participant