Resolve #667, support shared string table without unique count

formula
xuri 5 years ago
parent 5993a07422
commit 820a314cfb
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7

@ -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 {

Loading…
Cancel
Save