diff options
author | Aplulu <aplulu.liv@gmail.com> | 2019-04-09 23:18:31 +0900 |
---|---|---|
committer | Aplulu <aplulu.liv@gmail.com> | 2019-04-09 23:31:12 +0900 |
commit | 841ff4a03e2b30378f6bb2930752c8e9dcfe0dca (patch) | |
tree | 10eb908f7294dc18498b611f35a403d9d28b6e48 /sheet.go | |
parent | 4e7d93a77796aa6814339d377a94d4b66226f1ce (diff) |
Fix out of range panic when removing formula.
Fix file corruption issue when deleting a sheet containing a formula.
Diffstat (limited to 'sheet.go')
-rw-r--r-- | sheet.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -403,6 +403,7 @@ func (f *File) DeleteSheet(name string) { rels := "xl/worksheets/_rels/sheet" + strconv.Itoa(v.SheetID) + ".xml.rels" target := f.deleteSheetFromWorkbookRels(v.ID) f.deleteSheetFromContentTypes(target) + f.deleteCalcChain(v.SheetID, "") // Delete CalcChain delete(f.sheetMap, name) delete(f.XLSX, sheet) delete(f.XLSX, rels) |