From 841ff4a03e2b30378f6bb2930752c8e9dcfe0dca Mon Sep 17 00:00:00 2001 From: Aplulu Date: Tue, 9 Apr 2019 23:18:31 +0900 Subject: Fix out of range panic when removing formula. Fix file corruption issue when deleting a sheet containing a formula. --- cell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cell.go') 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 } -- cgit v1.2.1