mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 16:19:27 +02:00
TAChart: Fill TLegendItem.Owner property
git-svn-id: trunk@31629 -
This commit is contained in:
parent
597e60e8a7
commit
afebc43889
@ -331,8 +331,10 @@ begin
|
|||||||
AItems.Add(TLegendItemUserDrawn.Create(i, Legend.OnDraw, Title))
|
AItems.Add(TLegendItemUserDrawn.Create(i, Legend.OnDraw, Title))
|
||||||
else
|
else
|
||||||
GetLegendItems(AItems);
|
GetLegendItems(AItems);
|
||||||
for i := oldCount to AItems.Count - 1 do
|
for i := oldCount to AItems.Count - 1 do begin
|
||||||
|
AItems[i].Owner := Self;
|
||||||
Legend.InitItem(AItems[i], i - oldCount, FChart.Legend);
|
Legend.InitItem(AItems[i], i - oldCount, FChart.Legend);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCustomChartSeries.GetNearestPoint(
|
function TCustomChartSeries.GetNearestPoint(
|
||||||
|
Loading…
Reference in New Issue
Block a user