diff options
| author | xuri <xuri.me@gmail.com> | 2020-07-15 23:32:00 +0800 |
|---|---|---|
| committer | xuri <xuri.me@gmail.com> | 2020-07-15 23:32:00 +0800 |
| commit | 820a314cfbcaa4d32401b0b6c67bf65f064483ec (patch) | |
| tree | 9c3bcff232e40a61c4b1c18d73e1649cddfa4ee4 | |
| parent | 5993a07422b6ace5230f562551f014180a83515a (diff) | |
Resolve #667, support shared string table without unique count
| -rw-r--r-- | rows.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 { |
