You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2022/07/08 16:03:38 UTC
[Bug 66052] XSSFColor cannot be used the same time as org.apache.poi.ss.util classes
https://bz.apache.org/bugzilla/show_bug.cgi?id=66052
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
I don't know the code well, but from a brief look, I think the issue is in
CellStyle.getFormatProperties and CellStyle.setFormatProperties both only using
the indexed colours
We do have CellStyle.getFillBackgroundColorColor and CellStyle.
getFillForegroundColorColor but no matching setters on the interface that take
a Color. HSSFCellStyle doesn't have ones taking a Color, while XSSFCellStyle
has ones taking a XSSFColor but nor a Color
I'm not certain, but I think adding setters that take a Color onto the
interface and implementing that on HSSFCellStyle (with an error there if not an
indexed one), then updating CellStyle to optionally work with a Color instead
of a short, might be enough
Patches welcome! :)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org