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:
wp_xxyyzz
2016-01-18 21:53:18 +00:00
parent cdf96e2fa2
commit 62246a58db

View File

@ -3822,6 +3822,10 @@ end;
procedure TsCustomWorksheetGrid.NewWorkbook(AColCount, ARowCount: Integer);
begin
GetWorkbookSource.CreateNewWorkbook;
FInitColCount := AColCount;
FInitRowCount := ARowCount;
Setup;
{
if FOwnsWorkbook then
FreeAndNil(FOwnedWorkbook);