```
OfficeOpenXml.ExcelPackage pkg =
new OfficeOpenXml.ExcelPackage( new FileInfo(@"C:\Test\Out\out_file.xlsx")
, new FileInfo(@"C:\Test\template_2.xlsx"));
pkg.Save();
```
The template has a line of varying heights, EPPlus 4.0.4 resize rows without my participation.
For example, in the template file "template_2.xlsx" line 1,2,4,5 have a height: 0.3cm, but in the resulting file, we see that the height of rows changed.
Why is that?
__UPDATE:__
File: ExcelWorksheet.cs
private void WriteRow(StringBuilder cache, ExcelStyleCollection<ExcelXfs> cellXfs, int prevRow, int row)
If condition:
```
else if (currRow.Height != DefaultRowHeight && currRow.Height>=0)
{
cache.AppendFormat(string.Format(CultureInfo.InvariantCulture, "ht=\"{0}\" ", currRow.Height));
if (currRow.CustomHeight)
{
cache.Append("customHeight=\"1\" ");
}
}
```
then rows height in result file - INCORRECT
if condition :
```
else if (currRow.Height>=0)
{
cache.AppendFormat(string.Format(CultureInfo.InvariantCulture, "ht=\"{0}\" ", currRow.Height));
if (currRow.CustomHeight)
{
cache.Append("customHeight=\"1\" ");
}
}
```
then result file is OK !