Browse Source

Merge pull request #1235 from workgroupengineering/fixes/XSSF/Style_does_not_apply

fix: Do not save Style with index 0
pull/1238/head
Tony Qu 2 years ago
committed by GitHub
parent
commit
3eb291ee6c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs

2
OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs

@ -69,7 +69,7 @@ namespace NPOI.OpenXmlFormats.Spreadsheet
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);

Loading…
Cancel
Save