The GitHub Actions job "Java CI with Ant" on poi.git/bug-60895 has failed.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
32a21d659a9180323cb96a666ed6d3e0ae2182ef / PJ Fanning 
<[email protected]>
[bug-60895] CellUtil: a changed property keeps the default fill and border 
instead of adding new ones

Changing one property of a cell with the default style through CellUtil
added a fill and a border to the workbook and made the new style apply
them, although the cell has no fill and no border. Two causes:

- XSSFCellStyle.setFillPattern(NO_FILL) removed the patternType, giving
  <patternFill/>, which is not recognised as Excel's default fill
  <patternFill patternType="none"/>. It now writes "none" like Excel.
- XSSFCellStyle reports BLACK for the color of a side without a border,
  and CellUtil wrote that back, giving a border with colors on every
  side. The color of a side without a border is now neither written nor
  compared when looking for an existing style.

The new style now references fill 0 and border 0 of the workbook.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

Report URL: https://github.com/apache/poi/actions/runs/35536298017

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to