Summary: | XSSFCellStyle.get*BorderXSSFColor().getRgb() returns null for theme colors | ||
---|---|---|---|
Product: | POI | Reporter: | andrei <andrei.astrouski> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.7-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Attachments: |
BorderColorTest.java
BorderColorTest.xlsx |
Description
andrei
2011-03-01 09:03:55 UTC
Does this apply to a recent nightly build / svn checkout? (I think it probably does, but I wanted to double check given all the other xssf colour changes and fixes recently) It's reproduced I think I've solved this in r1077968. However, I didn't have a suitable file to hand to write a unit test for this with. Any chance you could upload a sample file with two styles, one which has the border set with theme colours, and one with the border set with non-theme (i.e. normal) colours? We can then use that for a unit test. Created attachment 26748 [details]
BorderColorTest.java
Created attachment 26749 [details]
BorderColorTest.xlsx
Unfortunately the bug is still reproduced StylesTable (including XSSFCellBorder) is initialized with null theme and only after that setTheme(ThemesTable) is called. So XSSFCellBorder has null theme. |