Skip to content

Commit

Permalink
Resolve #387, skip saving empty calculation chains
Browse files Browse the repository at this point in the history
  • Loading branch information
xuri committed Apr 22, 2019
1 parent b45c4b0 commit 095b5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calcchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 095b5fb

Please sign in to comment.