https://bz.apache.org/bugzilla/show_bug.cgi?id=56959
Dominik Stadler <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|NEW |RESOLVED --- Comment #1 from Dominik Stadler <[email protected]> --- I could not reproduce this via the following code with latest trunk, also the style is applied when I look at the file in LibreOffice. // Create a new font and alter it. Font font = wb.createFont(); font.setFontHeightInPoints((short)24); font.setFontName("Courier New"); font.setItalic(true); font.setStrikeout(true); font.setColor(Font.COLOR_RED); CellStyle style = wb.createCellStyle(); style.setBorderBottom(CellStyle.BORDER_DOTTED); style.setFont(font); Cell cell = row.createCell(0); cell.setCellStyle(style); cell.setCellValue("testtext"); Cell newCell = row.createCell(1); newCell.setCellStyle(style); newCell.setCellValue("2testtext2"); CellStyle newStyle = newCell.getCellStyle(); assertEquals(CellStyle.BORDER_DOTTED, newStyle.getBorderBottom()); assertEquals(Font.COLOR_RED, ((HSSFCellStyle)newStyle).getFont(wb).getColor()); If this is still a problem for you, please reopen this bug with a sample file and a self-contained unit test which allows us to reproduce your problem. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
