summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2019-04-13 10:45:01 +0800
committerGitHub <noreply@github.com>2019-04-13 10:45:01 +0800
commit031ae303fd37b43f687c57edbf58cad7f354f8c7 (patch)
tree3248af22f51e20a46cd99f484c7f06e318b2dca2 /sheet.go
parent8fff533b40111085f936075d7da12490be4a46a2 (diff)
parent841ff4a03e2b30378f6bb2930752c8e9dcfe0dca (diff)
Merge pull request #381 from aplulu/fix_calcchain
Fix two bugs related to Formula
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sheet.go b/sheet.go
index ec4df77..9960ef8 100644
--- a/sheet.go
+++ b/sheet.go
@@ -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)