TAChart: Fill TLegendItem.Owner property

git-svn-id: trunk@31629 -
This commit is contained in:
ask 2011-07-10 01:20:43 +00:00
parent 597e60e8a7
commit afebc43889

View File

@ -331,8 +331,10 @@ begin
AItems.Add(TLegendItemUserDrawn.Create(i, Legend.OnDraw, Title))
else
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);
end;
end;
function TCustomChartSeries.GetNearestPoint(