refactor recurse check (#979)

This commit is contained in:
PJ Fanning 2025-12-17 22:08:23 +01:00
parent 6e152a71a6
commit 7872c2afcb

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);
}
}