Fix corrupted Excel file issue #413

formula
xuri 5 years ago committed by GitHub
parent 7716968abc
commit e7581ebf3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -406,6 +406,11 @@ func (f *File) DeleteSheet(name string) {
f.SheetCount--
}
}
for idx, bookView := range wb.BookViews.WorkBookView {
if bookView.ActiveTab >= f.SheetCount {
wb.BookViews.WorkBookView[idx].ActiveTab--
}
}
f.SetActiveSheet(len(f.GetSheetMap()))
}

Loading…
Cancel
Save