Skip to content

Commit 46955f1

Browse files
claudiamurialdoClaudia Beatriz Murialdo Garrone
andauthored
Border Style for DiagonalDown and DiagonalUp in cell styles was not applied correctly. (#1068)
Co-authored-by: Claudia Beatriz Murialdo Garrone <c.murialdo@globant.com>
1 parent 75730ab commit 46955f1

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)