Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@ public List<SheetCell> OrderCellsForCalc2()
return resultList;
}


#region private methods
private void CheckCircularCells(List<SheetCell> sheetCells)
public void CheckCircularCells(List<SheetCell> sheetCells)
{
var circularCells = new List<ValueAddress>();
foreach (var cell in sheetCells)
Expand All @@ -140,6 +138,8 @@ private void CheckCircularCells(List<SheetCell> sheetCells)
}
}

#region private methods

private string GetCircularCellsStr(List<SheetCell> badCells)
{
var resultStr = string.Empty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ private void EvalSheet(Sheet sheet, SheetData cells)
var formulaCells = sheet.Cells
.Where(x => IsFormula(x.Formula))
.ToList();

_analyzer.CheckCircularCells(formulaCells);

// formulas without depend
var endingFormulas = new List<ValueAddress>();
Expand Down