summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cell.go b/cell.go
index a8f6861..dc2263a 100644
--- a/cell.go
+++ b/cell.go
@@ -1,7 +1,6 @@
package excelize
import (
- "encoding/xml"
"strconv"
"strings"
)
@@ -48,10 +47,9 @@ func (f *File) GetCellValue(sheet, axis string) string {
}
switch r.T {
case "s":
- shardStrings := xlsxSST{}
+ shardStrings := f.sharedStringsReader()
xlsxSI := 0
xlsxSI, _ = strconv.Atoi(r.V)
- xml.Unmarshal([]byte(f.readXML("xl/sharedStrings.xml")), &shardStrings)
return f.formattedValue(r.S, shardStrings.SI[xlsxSI].T)
case "str":
return f.formattedValue(r.S, r.V)