Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SXSSFRow.cs #1073

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

SamuelPlentz
Copy link
Contributor

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:

if (row.HasCustomHeight())
{
WriteAsBytes(" customHeight=\"true\" ht=\"");
WriteAsBytes(row.HeightInPoints);
WriteAsBytes("\"");
}

```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
@tonyqus
Copy link
Member

tonyqus commented Apr 26, 2023

LGTM

@tonyqus tonyqus merged commit f9677f2 into nissl-lab:master Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants