summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-04-23 02:01:14 +0800
committerxuri <xuri.me@gmail.com>2020-04-23 02:01:14 +0800
commit1fe660df648422a53eef0c735657cb2f5237ef7b (patch)
tree6b1274e37fa6505b840eb1187bd42650908ca69b /cell.go
parent10115b5d889bb229d8707803b9413b20fe798588 (diff)
- Resolve #485 use sheet index instead of ID
- added 3 internal function: getSheetID, getActiveSheetID, getSheetNameByID
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 8e7ede1..a69f4d9 100644
--- a/cell.go
+++ b/cell.go
@@ -337,7 +337,7 @@ func (f *File) SetCellFormula(sheet, axis, formula string, opts ...FormulaOpts)
}
if formula == "" {
cellData.F = nil
- f.deleteCalcChain(f.GetSheetIndex(sheet), axis)
+ f.deleteCalcChain(f.getSheetID(sheet), axis)
return err
}