summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorAplulu <aplulu.liv@gmail.com>2019-04-09 23:18:31 +0900
committerAplulu <aplulu.liv@gmail.com>2019-04-09 23:31:12 +0900
commit841ff4a03e2b30378f6bb2930752c8e9dcfe0dca (patch)
tree10eb908f7294dc18498b611f35a403d9d28b6e48 /cell.go
parent4e7d93a77796aa6814339d377a94d4b66226f1ce (diff)
Fix out of range panic when removing formula.
Fix file corruption issue when deleting a sheet containing a formula.
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index a1b6dbf..36f2d93 100644
--- a/cell.go
+++ b/cell.go
@@ -235,7 +235,7 @@ func (f *File) SetCellFormula(sheet, axis, formula string) error {
}
if formula == "" {
cellData.F = nil
- f.deleteCalcChain(axis)
+ f.deleteCalcChain(f.GetSheetIndex(sheet), axis)
return err
}