diff --git a/components/tachart/tachartlistbox.pas b/components/tachart/tachartlistbox.pas index 2a410b09d5..27169711d6 100644 --- a/components/tachart/tachartlistbox.pas +++ b/components/tachart/tachartlistbox.pas @@ -72,8 +72,6 @@ type procedure KeyDown(var AKey: Word; AShift: TShiftState); override; procedure MouseDown( AButton: TMouseButton; AShift: TShiftState; AX, AY: Integer); override; - procedure Notification( - AComponent: TComponent; AOperation: TOperation); override; protected procedure CalcRects( const AItemRect: TRect; out ACheckboxRect, ASeriesIconRect: TRect); @@ -447,15 +445,6 @@ begin end; end; -procedure TChartListbox.Notification( - AComponent: TComponent; AOperation: TOperation); -{ avoids AV if Chart is deleted from its container form } -begin - if (AOperation = opRemove) and (AComponent = FChart) then - SetChart(nil); - inherited Notification(AComponent, AOperation); -end; - procedure TChartListbox.Populate; { populates the listbox with all series contained in the chart. Use the event OnPopulate if you don't omit special series from the listbox (RemoveSeries) }