You've already forked lazarus-ccr
fpspreadsheet: Fix ignored-formula feature.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7997 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
confirmation must be given to save the file because it has been changed
|
confirmation must be given to save the file because it has been changed
|
||||||
by LOCalc.
|
by LOCalc.
|
||||||
|
|
||||||
This method does not work with Excel because it writes an additonal
|
This method does not work with Excel because it writes an additional
|
||||||
folder and xml files for external links. }
|
folder and xml files for external links. }
|
||||||
|
|
||||||
program demo_ignore_formula;
|
program demo_ignore_formula;
|
||||||
|
@ -4783,12 +4783,14 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if not (boIgnoreFormulas in Workbook.Options) then
|
|
||||||
begin
|
|
||||||
// Remove '='; is not stored internally
|
// Remove '='; is not stored internally
|
||||||
if (AFormula[1] = '=') then
|
if (AFormula[1] = '=') then
|
||||||
AFormula := Copy(AFormula, 2, Length(AFormula));
|
Delete(AFormula, 1, 1);
|
||||||
|
|
||||||
|
if (boIgnoreFormulas in Workbook.Options) then
|
||||||
|
formula := FFormulas.AddFormula(ACell^.Row, ACell^.Col, AFormula)
|
||||||
|
else
|
||||||
|
begin
|
||||||
parser := TsSpreadsheetParser.Create(self);
|
parser := TsSpreadsheetParser.Create(self);
|
||||||
try
|
try
|
||||||
if ALocalized then
|
if ALocalized then
|
||||||
|
Reference in New Issue
Block a user