summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-05-10 16:56:08 +0800
committerxuri <xuri.me@gmail.com>2020-05-10 16:56:08 +0800
commit882abb80988b7c50286dd2e6c6589fab10662db6 (patch)
tree49f88c0a3ed045a61519a318c67e0551d247c52e /cell.go
parent4188dc7a4a650200c697fd47ad28ba346bf786a6 (diff)
- formula engine: reduce cyclomatic complexity
- styles: allow empty and default cell formats, #628
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cell.go b/cell.go
index a69f4d9..63db194 100644
--- a/cell.go
+++ b/cell.go
@@ -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
}