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
Out of range in RemoveRow() #437
Labels
confirmed
This issue can be reproduced
Comments
Hi @artsb, thanks for your feedback. Please provide code and testing file attachment if you can. |
Template code:
|
xuri
added
confirmed
This issue can be reproduced
in progress
Working in progress
labels
Jul 20, 2019
Hi @artsb, thanks for your issue. I have fixed it. Please try to upgrade the library with the master branch code. |
I'm glad to help you ;) Thanks for your work! |
nullfy
pushed a commit
to nullfy/excelize
that referenced
this issue
Oct 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have complicated accounting document with many rows. I was update package Excelize.
And now, if i calling RemoveRow() in cycle, i receive an error - out of range.
Error location:
Row:
I think you need to replace row:
for i, areaData := range xlsx.MergeCells.Cells {
with:
for i := 0; i < len(xlsx.MergeCells.Cells); i++ {
in method adjustMergeCells(). And decrement index after each calling method deleteMergeCell().
Like this:
This was solve problem for me. But i did not go deep into solving this problem.
Excelize version or commit ID:
last update
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: