Skip to content

Commit

Permalink
fix: Do not save Style with index 0
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Dec 11, 2023
1 parent f1ecc1e commit a34019c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ internal void Write(StreamWriter sw, string nodeName)
sw.Write(nodeName);

XmlHelper.WriteAttribute(sw, "r", this.r);
XmlHelper.WriteAttribute(sw, "s", this.s);
XmlHelper.WriteAttribute(sw, "s", this.s, true);
if (this.t != ST_CellType.n)
XmlHelper.WriteAttribute(sw, "t", this.t.ToString());
XmlHelper.WriteAttribute(sw, "cm", this.cm);
Expand Down

0 comments on commit a34019c

Please sign in to comment.