From 820a314cfbcaa4d32401b0b6c67bf65f064483ec Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 15 Jul 2020 23:32:00 +0800 Subject: [PATCH] Resolve #667, support shared string table without unique count --- rows.go | 3 +++ 1 file changed, 3 insertions(+) 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 {