未验证 提交 e7581ebf 编写于 作者: xurime's avatar xurime 提交者: GitHub

Fix corrupted Excel file issue #413

上级 7716968a
......@@ -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()))
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册