Skip to content

Commit 4ce2764

Browse files
author
Claudia Beatriz Murialdo Garrone
committed
Border Style for DiagonalDown and DiagonalUp in cell styles was not applied correctly.
(cherry picked from commit ab735d6)
1 parent 5fe3187 commit 4ce2764

File tree

2 files changed

+77
-86
lines changed

2 files changed

+77
-86
lines changed

dotnet/src/dotnetframework/GxOffice/poi/xssf/ExcelCells.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ private XSSFCellStyle ApplyNewCellStyle(XSSFCellStyle cellStyle, ExcelStyle newC
11171117
CT_Xf _cellXf = cellStyle.GetCoreXf();
11181118
ExcelBorder border = (hasDiagonalUp) ? cellBorder.BorderDiagonalUp : cellBorder.BorderDiagonalDown;
11191119
XSSFColor diagonalColor = ToColor(border.BorderColor);
1120-
BorderStyle.TryParse(border.Border, out BorderStyle borderStyle);
1120+
BorderStyle borderStyle = ConvertToBorderStyle(border.Border);
11211121
SetBorderDiagonal(borderStyle, diagonalColor, this.pWorkbook.GetStylesSource(), _cellXf, hasDiagonalUp, hasDiagonalDown);
11221122
}
11231123
}

0 commit comments

Comments
 (0)