You've already forked lazarus-ccr
fpspreadsheet: Rearrange cell comment architecture: to save memory cell comments are now stored in the worksheet's avltree "Comments". Replace cell's "CalcState" by more general "Flags" which signals that a cell contains a comment (to be extended...)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3943 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3843,7 +3843,7 @@ begin
|
||||
cell := FCell;
|
||||
|
||||
if (cell <> nil) and HasFormula(cell) then
|
||||
case cell^.CalcState of
|
||||
case FWorksheet.GetCalcState(cell) of
|
||||
csNotCalculated:
|
||||
Worksheet.CalcFormula(cell);
|
||||
csCalculating:
|
||||
@ -3942,9 +3942,11 @@ begin
|
||||
begin
|
||||
cell := FWorksheet.FindCell(r, c);
|
||||
if HasFormula(cell) then
|
||||
case cell^.CalcState of
|
||||
csNotCalculated: FWorksheet.CalcFormula(cell);
|
||||
csCalculating : raise Exception.Create(SErrCircularReference);
|
||||
case FWorksheet.GetCalcState(cell) of
|
||||
csNotCalculated:
|
||||
FWorksheet.CalcFormula(cell);
|
||||
csCalculating:
|
||||
raise ECalcEngine.Create(SErrCircularReference);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user