mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 20:50:40 +02:00
TAChart: Fix AV when clearing Series.Styles and TColorMapSeries.ColorSource properties
git-svn-id: trunk@37770 -
This commit is contained in:
parent
8f09d13055
commit
b8f54da212
@ -835,6 +835,7 @@ begin
|
||||
if FStylesListener.IsListening then
|
||||
Styles.Broadcaster.Unsubscribe(FStylesListener);
|
||||
FStyles := AValue;
|
||||
if Styles <> nil then
|
||||
Styles.Broadcaster.Subscribe(FStylesListener);
|
||||
UpdateParentChart;
|
||||
end;
|
||||
|
@ -1522,6 +1522,7 @@ begin
|
||||
if FColorSourceListener.IsListening then
|
||||
ColorSource.Broadcaster.Unsubscribe(FColorSourceListener);
|
||||
FColorSource := AValue;
|
||||
if ColorSource <> nil then
|
||||
ColorSource.Broadcaster.Subscribe(FColorSourceListener);
|
||||
UpdateParentChart;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user