From cf8ca8c16db9940741037e9c880dcb377c571a27 Mon Sep 17 00:00:00 2001 From: ABykiev Date: Sat, 5 Oct 2024 13:43:28 +0300 Subject: [PATCH] Fix checking if cell style is set This PR fixes checking if cell style is set --- OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs b/OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs index 560042ab2..6eed7ac92 100644 --- a/OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs +++ b/OpenXmlFormats/Spreadsheet/Sheet/CT_Cell.cs @@ -130,7 +130,7 @@ public bool IsSetT() } public bool IsSetS() { - return sField != 0; + return sField != null && sField != 0; } public bool IsSetF() {