summaryrefslogtreecommitdiff
path: root/rows.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-05-24 19:13:10 +0800
committerGitHub <noreply@github.com>2021-05-24 19:13:10 +0800
commit056dc8454edb59758f06040195d40703c8b63900 (patch)
tree60ec1d28080ae2be73ea61963522e1b8eccbaa31 /rows.go
parent5bf3ea61547df2a36757f14bfba47bf22b747079 (diff)
parent2f74ec171d8c42367666014fa661eab26f088e68 (diff)
Merge pull request #847 from qwaszx102938/master
fix the bug that there was no count attribute in sharedStrings file, fix the bug that setting OutlineSummaryBelow false
Diffstat (limited to 'rows.go')
-rw-r--r--rows.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/rows.go b/rows.go
index 4147662..d8750eb 100644
--- a/rows.go
+++ b/rows.go
@@ -322,6 +322,9 @@ func (f *File) sharedStringsReader() *xlsxSST {
Decode(&sharedStrings); err != nil && err != io.EOF {
log.Printf("xml decode error: %s", err)
}
+ if sharedStrings.Count == 0 {
+ sharedStrings.Count = len(sharedStrings.SI)
+ }
if sharedStrings.UniqueCount == 0 {
sharedStrings.UniqueCount = sharedStrings.Count
}