Bug 62272 - XSSFFont.setColor(XSSFColor) not including alpha channel
Summary: XSSFFont.setColor(XSSFColor) not including alpha channel
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.17-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-09 11:12 UTC by Tomáš
Modified: 2018-06-28 16:39 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.