refactor recurse check (#979)

This commit is contained in:
PJ Fanning 2025-12-17 22:08:23 +01:00 committed by GitHub
parent 6762b5a9fb
commit fe3359bd79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -410,7 +410,7 @@ public final class XSSFCell extends CellBase {
/* In an excel generated array formula, the formula property might be set, but the string is empty in related cells */
if (f == null || f.getStringValue().isEmpty()) {
XSSFCell cell = getSheet().getFirstCellInArrayFormula(this);
if (cell != this) {
if (!equals(cell)) {
return cell.getCellFormula(fpb);
}
}