fpspreadsheet: Fix design-time crash of workbooksource when notifying chartlink without assigned chart.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9504 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
4a44b777d8
commit
16e9ab27f1
@ -1984,7 +1984,7 @@ begin
|
||||
UpdateChart;
|
||||
|
||||
// Another worksheet is selected --> Select the first chart of the worksheet
|
||||
if (lniWorksheet in AChangedItems) and (WorkbookSource <> nil) then
|
||||
if (lniWorksheet in AChangedItems) and (WorkbookSource <> nil) and (FChart <> nil) then
|
||||
begin
|
||||
charts := WorkbookSource.Worksheet.GetCharts;
|
||||
if Length(charts) > 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user