summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/cell.go b/cell.go
index b182e2b..ca590a9 100644
--- a/cell.go
+++ b/cell.go
@@ -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 ""