Bug 62272

Summary: XSSFFont.setColor(XSSFColor) not including alpha channel
Product: POI Reporter: Tomáš <tom.opichal>
Component: XSSFAssignee: POI Developers List <dev>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 3.17-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Tomáš 2018-04-09 11:12:17 UTC
Color of font is not set properly by call to method XSSFFont.setColor(XSSFColor).

[styles.xml] It sets 'rgb' attribute of 'color' element without an alpha channel but 'rgb' attribute is of type ST_UnsignedIntHex which has length 4 (ARGB in hexadecimal format).

[XSSFFont.java] Guess the problem is in XSSFFont's method setColor(XSSFColor) at the following line:

ctColor.setRgb(color.getRGB());

where a call to getRGB() should be replaced by getARGB().
Comment 1 Dominik Stadler 2018-06-28 16:39:19 UTC
This sounds like a duplicate of #54373 or at least it sounds closely related.