You've already forked lazarus-ccr
fpspreadsheet: Fix the WorksheetGrid method NewWorkbook to respect the column and row count parameter.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4437 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -3822,6 +3822,10 @@ end;
|
|||||||
procedure TsCustomWorksheetGrid.NewWorkbook(AColCount, ARowCount: Integer);
|
procedure TsCustomWorksheetGrid.NewWorkbook(AColCount, ARowCount: Integer);
|
||||||
begin
|
begin
|
||||||
GetWorkbookSource.CreateNewWorkbook;
|
GetWorkbookSource.CreateNewWorkbook;
|
||||||
|
FInitColCount := AColCount;
|
||||||
|
FInitRowCount := ARowCount;
|
||||||
|
Setup;
|
||||||
|
|
||||||
{
|
{
|
||||||
if FOwnsWorkbook then
|
if FOwnsWorkbook then
|
||||||
FreeAndNil(FOwnedWorkbook);
|
FreeAndNil(FOwnedWorkbook);
|
||||||
|
Reference in New Issue
Block a user