Hi.
I have founded that border style for merged cell detected incorrectly. Moreover for simple border style it works, but for another line style it not works.
@Test
public void bordersTest() throws Exception {
Workbook wb = new Workbook(“D://in.xlsx”);
Cells cells = wb.getWorksheets().get(0).getCells();
Style style = cells.get(“F3”).getStyle(true);
//works (1, 1, 1, 1);
System.out.println(style.getBorders().getByBorderType(BorderType.LEFT_BORDER).getLineStyle());
System.out.println(style.getBorders().getByBorderType(BorderType.TOP_BORDER).getLineStyle());
System.out.println(style.getBorders().getByBorderType(BorderType.RIGHT_BORDER).getLineStyle());
System.out.println(style.getBorders().getByBorderType(BorderType.BOTTOM_BORDER).getLineStyle());
style = cells.get(“C3”).getStyle(true);
//not works for right and bottom (2,2,0,0)
System.out.println(style.getBorders().getByBorderType(BorderType.LEFT_BORDER).getLineStyle());
System.out.println(style.getBorders().getByBorderType(BorderType.TOP_BORDER).getLineStyle());
System.out.println(style.getBorders().getByBorderType(BorderType.RIGHT_BORDER).getLineStyle());
System.out.println(style.getBorders().getByBorderType(BorderType.BOTTOM_BORDER).getLineStyle());
}
Best regards.