Skip to content

Commit a09ab3c

Browse files
mlopezFCjavier-godoy
authored andcommitted
fix: clear the styles before processing the column in the footer
1 parent 5b429cb commit a09ab3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/gridexporter/ExcelInputStreamFactory.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,10 @@ private void fillHeaderOrFooter(
417417
sheet.setActiveCell(headersOrFootersCell.getAddress());
418418
headersOrFooters.forEach(
419419
headerOrFooter -> {
420+
if (!isHeader) {
421+
// clear the styles before processing the column in the footer
422+
ComponentUtil.setData(headerOrFooter.getRight(), COLUMN_CELLSTYLE_MAP, null);
423+
}
420424
Cell cell =
421425
sheet
422426
.getRow(sheet.getActiveCell().getRow())

0 commit comments

Comments
 (0)