From 7a7b03235d5473e1eb8ed32fa11ebe0a465009cd Mon Sep 17 00:00:00 2001 From: wp Date: Thu, 20 Jul 2017 22:12:15 +0000 Subject: [PATCH] TAChart: Fix legend issue and memory leak of bar and area series (issue #0032181) git-svn-id: trunk@55551 - --- components/tachart/tacustomseries.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/components/tachart/tacustomseries.pas b/components/tachart/tacustomseries.pas index f6ec6574e9..ff98a538a1 100644 --- a/components/tachart/tacustomseries.pas +++ b/components/tachart/tacustomseries.pas @@ -1287,6 +1287,7 @@ begin begin li := TLegendItemBrushRect.Create(ABrush, LegendTextSingle); li.TextFormat := Legend.TextFormat; + AItems.Add(li); end; lmPoint: for i := 0 to Count - 1 do begin