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

Fix issues related to cells inserting (1236) #1247

Merged
merged 7 commits into from
Feb 11, 2020

Conversation

Pankraty
Copy link
Member

@Pankraty Pankraty commented Jul 9, 2019

This PR closes #1236, but also

  • I found that InsertCellsBefore caused unnecessary initialization of all cells prior to the last cell in a row
  • MaxColumnUsed and MaxRowUsed were not recalculated once row/column got deleted
  • DecrementUsage was called twice with row passed:
            DecrementUsage(RowsUsed, row);
            DecrementUsage(ColumnsUsed, row);

(I could not manage to find evident bugs caused by this, but I am pretty sure they might exist)

@Pankraty Pankraty added the bug label Jul 9, 2019
@Pankraty Pankraty changed the title WIP Fix issues related to cells inserting (1236) Fix issues related to cells inserting (1236) Jul 10, 2019
@igitur igitur self-requested a review February 11, 2020 06:45
@igitur igitur added this to the v0.95 milestone Feb 11, 2020
@igitur igitur merged commit 3ad2064 into ClosedXML:develop Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SaveAs exception after InsertCellsBefore
2 participants