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;
|
UpdateChart;
|
||||||
|
|
||||||
// Another worksheet is selected --> Select the first chart of the worksheet
|
// 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
|
begin
|
||||||
charts := WorkbookSource.Worksheet.GetCharts;
|
charts := WorkbookSource.Worksheet.GetCharts;
|
||||||
if Length(charts) > 0 then
|
if Length(charts) > 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user