修复问题 more than 3 if/for/while/switch/try

This commit is contained in:
znxdgwx 2021-04-27 09:36:15 +08:00
parent b32865ad65
commit b923783b34

View File

@ -886,7 +886,9 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
if (row.getLastCellNum() != 0) {
for (int i = 0; i < this.workbook.getSpreadsheetVersion().getMaxColumns(); i++) {
Cell cell = row.getCell(i);
if (cell == null) {
if (cell != null) {
continue;
}
if (iterator.hasNext()) {
cell = row.createCell(i);
CellUtil.setCellValue(cell, iterator.next(), this.styleSet, true);
@ -894,7 +896,6 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
break;
}
}
}
} else {
writeHeadRow(rowData);
}