diff options
author | xuri <xuri.me@gmail.com> | 2020-05-10 16:56:08 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2020-05-10 16:56:08 +0800 |
commit | 882abb80988b7c50286dd2e6c6589fab10662db6 (patch) | |
tree | 49f88c0a3ed045a61519a318c67e0551d247c52e /cell.go | |
parent | 4188dc7a4a650200c697fd47ad28ba346bf786a6 (diff) |
- formula engine: reduce cyclomatic complexity
- styles: allow empty and default cell formats, #628
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -730,9 +730,9 @@ func (f *File) formattedValue(s int, v string) string { return v } styleSheet := f.stylesReader() - ok := builtInNumFmtFunc[styleSheet.CellXfs.Xf[s].NumFmtID] + ok := builtInNumFmtFunc[*styleSheet.CellXfs.Xf[s].NumFmtID] if ok != nil { - return ok(styleSheet.CellXfs.Xf[s].NumFmtID, v) + return ok(*styleSheet.CellXfs.Xf[s].NumFmtID, v) } return v } |