forked from p30928647/excelize
fix the bug when there was no count attribute in sharedStrings file
This commit is contained in:
parent
5bf3ea6154
commit
2f74ec171d
3
rows.go
3
rows.go
|
@ -322,6 +322,9 @@ func (f *File) sharedStringsReader() *xlsxSST {
|
|||
Decode(&sharedStrings); err != nil && err != io.EOF {
|
||||
log.Printf("xml decode error: %s", err)
|
||||
}
|
||||
if sharedStrings.Count == 0 {
|
||||
sharedStrings.Count = len(sharedStrings.SI)
|
||||
}
|
||||
if sharedStrings.UniqueCount == 0 {
|
||||
sharedStrings.UniqueCount = sharedStrings.Count
|
||||
}
|
||||
|
|
|
@ -248,9 +248,9 @@ type xlsxSheetPr struct {
|
|||
// adjust the direction of grouper controls.
|
||||
type xlsxOutlinePr struct {
|
||||
ApplyStyles *bool `xml:"applyStyles,attr"`
|
||||
SummaryBelow bool `xml:"summaryBelow,attr,omitempty"`
|
||||
SummaryRight bool `xml:"summaryRight,attr,omitempty"`
|
||||
ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr,omitempty"`
|
||||
SummaryBelow bool `xml:"summaryBelow,attr"`
|
||||
SummaryRight bool `xml:"summaryRight,attr"`
|
||||
ShowOutlineSymbols bool `xml:"showOutlineSymbols,attr"`
|
||||
}
|
||||
|
||||
// xlsxPageSetUpPr expresses page setup properties of the worksheet.
|
||||
|
|
Loading…
Reference in New Issue