summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rows.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/rows.go b/rows.go
index 87576c3..535b010 100644
--- a/rows.go
+++ b/rows.go
@@ -286,6 +286,9 @@ func (f *File) sharedStringsReader() *xlsxSST {
Decode(&sharedStrings); err != nil && err != io.EOF {
log.Printf("xml decode error: %s", err)
}
+ if sharedStrings.UniqueCount == 0 {
+ sharedStrings.UniqueCount = sharedStrings.Count
+ }
f.SharedStrings = &sharedStrings
for i := range sharedStrings.SI {
if sharedStrings.SI[i].T != nil {