Skip to content

Commit

Permalink
Merge pull request #64 from jake-codes-at-5-am/XL148
Browse files Browse the repository at this point in the history
XL148 - fix CT_FormulaCell writer
  • Loading branch information
artem-iron authored Mar 12, 2024
2 parents 59a20c1 + ad0b162 commit 4a6ec4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenXmlFormats/Spreadsheet/Sheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2701,7 +2701,7 @@ internal void Write(StreamWriter sw, string nodeName)
XmlHelper.WriteAttribute(sw, "r1", this.r1);
XmlHelper.WriteAttribute(sw, "r2", this.r2);
XmlHelper.WriteAttribute(sw, "ca", this.ca, false);
if(this.si!=0)
if(this.t == ST_CellFormulaType.shared || this.si!=0)
XmlHelper.WriteAttribute(sw, "si", this.si, true);
XmlHelper.WriteAttribute(sw, "bx", this.bx, false);
if (!string.IsNullOrEmpty(this.valueField))
Expand Down

0 comments on commit 4a6ec4c

Please sign in to comment.