diff options
author | Ri Xu <xuri.me@gmail.com> | 2017-09-01 12:59:15 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2017-09-01 12:59:15 +0800 |
commit | 574a6b20d1c9c15b12e2fe6d834e0cbb55a504d7 (patch) | |
tree | a184548ad353494d5b383fea3b3c1ed73b785072 /cell.go | |
parent | 1ec2661dda1ef16f58b2a3d614b11a2bcd0a2f2f (diff) |
Golang 1.9 compatible, fix issue #111
Diffstat (limited to 'cell.go')
-rw-r--r-- | cell.go | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -96,17 +96,8 @@ func (f *File) GetCellValue(sheet, axis string) string { if axis != r.R { continue } - switch r.T { - case "s": - shardStrings := f.sharedStringsReader() - xlsxSI := 0 - xlsxSI, _ = strconv.Atoi(r.V) - return f.formattedValue(r.S, shardStrings.SI[xlsxSI].T) - case "str": - return f.formattedValue(r.S, r.V) - default: - return f.formattedValue(r.S, r.V) - } + val, _ := r.getValueFrom(f, f.sharedStringsReader()) + return val } } return "" |