You've already forked lazarus-ccr
fpspreadsheet: Fix WorksheetGrid not calculating formulas in current cell
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4021 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -171,7 +171,7 @@ end;
|
||||
procedure TSortParamsForm.UpdateColRowList;
|
||||
var
|
||||
L: TStrings;
|
||||
r,c: Cardinal;
|
||||
r,c: LongInt;
|
||||
r1,c1, r2,c2: Cardinal;
|
||||
begin
|
||||
with FWorksheetGrid do begin
|
||||
|
@ -4,7 +4,7 @@ program spready;
|
||||
|
||||
uses
|
||||
Interfaces, // this includes the LCL widgetset
|
||||
Forms, mainform, laz_fpspreadsheet_visual, sCtrls, fpsCurrency,
|
||||
Forms, mainform, sCtrls, fpsCurrency,
|
||||
scsvparamsform, sfcurrencyform, sformatsettingsform, ssortparamsform;
|
||||
|
||||
{$R *.res}
|
||||
|
@ -1601,10 +1601,13 @@ end;
|
||||
@param ACol Column index of the cell which has been changed
|
||||
-------------------------------------------------------------------------------}
|
||||
procedure TsWorksheet.ChangedCell(ARow, ACol: Cardinal);
|
||||
var
|
||||
cell: PCell;
|
||||
begin
|
||||
if (FWorkbook.FCalculationLock = 0) and (boAutoCalc in FWorkbook.Options) then
|
||||
begin
|
||||
if CellUsedInFormula(ARow, ACol) then
|
||||
cell := FindCell(ARow, ACol);
|
||||
if HasFormula(cell) or CellUsedInFormula(ARow, ACol) then
|
||||
CalcFormulas;
|
||||
end;
|
||||
if Assigned(FOnChangeCell) then
|
||||
|
Reference in New Issue
Block a user