You've already forked lazarus-ccr
fpspreadsheet: Fix crash of Workbooksource when loading other sheets from the same workbook into a grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5542 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -1070,7 +1070,8 @@ procedure TsWorkbookSource.InternalLoadFromWorkbook(AWorkbook: TsWorkbook;
|
|||||||
begin
|
begin
|
||||||
AWorkbook.DisableNotifications;
|
AWorkbook.DisableNotifications;
|
||||||
|
|
||||||
InternalCreateNewWorkbook(AWorkbook);
|
if AWorkbook <> FWorkbook then
|
||||||
|
InternalCreateNewWorkbook(AWorkbook);
|
||||||
WorkbookOpenedHandler(self);
|
WorkbookOpenedHandler(self);
|
||||||
|
|
||||||
if AWorksheetIndex = -1 then
|
if AWorksheetIndex = -1 then
|
||||||
|
Reference in New Issue
Block a user