From a5f531838ba2341eee61a3ab59573ef3eb032ccf Mon Sep 17 00:00:00 2001 From: Marco Arnulfo Date: Mon, 12 Oct 2026 21:08:20 +0200 Subject: [PATCH] Functions: note the dependency gap of computed criteria (part of #737) --- crates/calc/src/eval.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/calc/src/eval.rs b/crates/calc/src/eval.rs index 98c1179..b22c48a 100644 --- a/crates/calc/src/eval.rs +++ b/crates/calc/src/eval.rs @@ -104,6 +104,10 @@ impl Ctx for FnCtx<'_, '_> { } /// Excel's "formula as criteria": the formula is written for the first record, so its relative /// references move down to `record`'s row, and the database's labels name its fields. + /// Known gap: the shifted references are not dependencies of the calling cell. One that lands + /// outside both the database and the criteria cell's own precedents (say `=G2 Option { let area = self.criteria?; let at = area.range.start.offset(row as i64, col as i64).filter(|c| area.range.contains(*c))?;