From b89af43930392dd68a176470a2a6bc90531011ca Mon Sep 17 00:00:00 2001 From: Artem Koloskov Date: Tue, 12 Mar 2024 15:27:58 +0700 Subject: [PATCH 1/4] upstream-fix: in `CT_CellFormula` ensure the `siField` is written into `fField`'s attributes on `Write` even when it has a default value for cases when the type of the formula is Shared formula. --- OpenXmlFormats/Spreadsheet/Sheet.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenXmlFormats/Spreadsheet/Sheet.cs b/OpenXmlFormats/Spreadsheet/Sheet.cs index e96aa1621..538ff99e1 100644 --- a/OpenXmlFormats/Spreadsheet/Sheet.cs +++ b/OpenXmlFormats/Spreadsheet/Sheet.cs @@ -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)) From 844391fecaee1e09009e350ffd62d08b5f960623 Mon Sep 17 00:00:00 2001 From: Tony Qu <772561+tonyqus@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:00:17 +0800 Subject: [PATCH 2/4] Delete .github/FUNDING.yml --- .github/FUNDING.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index f2d82e0f0..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -custom: ["https://www.paypal.me/tonyqus"] From 766e2c5cb5e0e6e80fe1dbdc1435cc400fd6d43c Mon Sep 17 00:00:00 2001 From: Tony Qu Date: Thu, 28 Mar 2024 11:07:55 +0800 Subject: [PATCH 3/4] Create FUNDING.yml --- .github/FUNDING.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 000000000..3f30d8a6b --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: tonyqus \ No newline at end of file From 462f15f80b1e18328e8bc2dc1b107daa5caf7d60 Mon Sep 17 00:00:00 2001 From: Tony Qu Date: Thu, 28 Mar 2024 11:09:26 +0800 Subject: [PATCH 4/4] Update FUNDING.yml --- .github/FUNDING.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 3f30d8a6b..aa28c0a8b 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -github: tonyqus \ No newline at end of file +github: nissl-lab \ No newline at end of file