Unverified Commit 820a314c authored by xuri's avatar xuri

Resolve #667, support shared string table without unique count

parent 5993a074
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment