summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-07-01 22:41:29 +0800
committerxuri <xuri.me@gmail.com>2020-07-01 22:41:29 +0800
commitf7bd0729c65fc82305328f7ac8fbaf329d1075c0 (patch)
treec8eb5e0fbef268d217acbd3e8cfb76c44ac81fee /rows.go
parent1cbb05d4977fc1c03fa37d704118fd9c722e487d (diff)
Resolve #32, fix missing leading/leading spaces when working with SST
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rows.go b/rows.go
index b89d916..392cc5d 100644
--- a/rows.go
+++ b/rows.go
@@ -292,8 +292,8 @@ func (f *File) sharedStringsReader() *xlsxSST {
}
f.SharedStrings = &sharedStrings
for i := range sharedStrings.SI {
- if sharedStrings.SI[i].T != "" {
- f.sharedStringsMap[sharedStrings.SI[i].T] = i
+ if sharedStrings.SI[i].T != nil {
+ f.sharedStringsMap[sharedStrings.SI[i].T.Val] = i
}
}
f.addContentTypePart(0, "sharedStrings")