Resolve #387, skip saving empty calculation chains

This commit is contained in:
xuri 2019-04-22 16:59:41 +08:00
parent b45c4b094c
commit 095b5fb62a
No known key found for this signature in database
GPG Key ID: BA5E5BB1C948EDF7
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func (f *File) calcChainReader() *xlsxCalcChain {
// calcChainWriter provides a function to save xl/calcChain.xml after
// serialize structure.
func (f *File) calcChainWriter() {
if f.CalcChain != nil {
if f.CalcChain != nil && f.CalcChain.C != nil {
output, _ := xml.Marshal(f.CalcChain)
f.saveFileList("xl/calcChain.xml", output)
}