Skip to content

Commit 4a6ec4c

Browse files
authored
Merge pull request jake-codes-at-5-am#64 from jake-codes-at-5-am/XL148
XL148 - fix CT_FormulaCell writer
2 parents 59a20c1 + ad0b162 commit 4a6ec4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenXmlFormats/Spreadsheet/Sheet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ internal void Write(StreamWriter sw, string nodeName)
27012701
XmlHelper.WriteAttribute(sw, "r1", this.r1);
27022702
XmlHelper.WriteAttribute(sw, "r2", this.r2);
27032703
XmlHelper.WriteAttribute(sw, "ca", this.ca, false);
2704-
if(this.si!=0)
2704+
if(this.t == ST_CellFormulaType.shared || this.si!=0)
27052705
XmlHelper.WriteAttribute(sw, "si", this.si, true);
27062706
XmlHelper.WriteAttribute(sw, "bx", this.bx, false);
27072707
if (!string.IsNullOrEmpty(this.valueField))

0 commit comments

Comments
 (0)