Skip to content

Commit

Permalink
Adding CloneStyleFrom to avoid losing custom style properties (i.e. F…
Browse files Browse the repository at this point in the history
…illForegroundXSSFColor)
  • Loading branch information
Federico Colombo authored and tonyqus committed Apr 25, 2022
1 parent ad826eb commit fd66dcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/SS/Util/CellUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ public static void SetCellStyleProperties(ICell cell, Dictionary<String, Object>
if (newStyle == null)
{
newStyle = workbook.CreateCellStyle();
newStyle.CloneStyleFrom(originalStyle);
SetFormatProperties(newStyle, workbook, values);
}

Expand Down

0 comments on commit fd66dcf

Please sign in to comment.