diff --git a/rows.go b/rows.go index 87576c33bb00b3cc81273a9ceb0abbe9d50cdd8a..535b0105930e59c4a35b12886b521d30e9a0c563 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 {