diff --git a/src/feature/excelEngine/excelEngine.ts b/src/feature/excelEngine/excelEngine.ts index f00b6ed..9cc777a 100644 --- a/src/feature/excelEngine/excelEngine.ts +++ b/src/feature/excelEngine/excelEngine.ts @@ -563,7 +563,9 @@ export class Workbook { } getValue(qualifiedName: string): CellValue { - if (this._dirty.has(qualifiedName)) { + // Исправление: пересчитываем если ВООБЩЕ есть грязные ячейки, + // а не только если конкретная запрашиваемая ячейка грязная + if (this._dirty.size > 0) { this.recalc() } const value = this.getCell(qualifiedName).value