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:
wp_xxyyzz
2015-03-13 14:54:55 +00:00
parent 6a56fc20c9
commit 31bd092955
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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}

View File

@ -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