From 21d7d409d18c96e0589c5253ea5565f74ee89d54 Mon Sep 17 00:00:00 2001 From: Samuel Plentz Date: Wed, 26 Apr 2023 10:59:03 +0200 Subject: [PATCH] Update SXSSFRow.cs ```Height``` returns the combined value of the current row height and the ```Sheet.DefaultRowHeight```. ```_height``` returns the value of the row height. Therefore I propose to use the row height here. This code triggers although there is no custom row height set: https://github.com/nissl-lab/npoi/blob/4997d06aeb603359bab3cc9653cd03840a1dcfa4/ooxml/XSSF/Streaming/SheetDataWriter.cs#L229-L234 --- ooxml/XSSF/Streaming/SXSSFRow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooxml/XSSF/Streaming/SXSSFRow.cs b/ooxml/XSSF/Streaming/SXSSFRow.cs index d12cd7cc7..afbe55eae 100644 --- a/ooxml/XSSF/Streaming/SXSSFRow.cs +++ b/ooxml/XSSF/Streaming/SXSSFRow.cs @@ -48,7 +48,7 @@ public CellIterator AllCellsIterator() } public virtual bool HasCustomHeight() { - return Height != -1; + return _height != -1; } public List Cells