mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 10:49:16 +02:00
cody: fixed clearing diagram
git-svn-id: trunk@40046 -
This commit is contained in:
parent
f4074a842f
commit
ce11068e10
@ -413,16 +413,18 @@ end;
|
||||
destructor TCustomCircleDiagramControl.Destroy;
|
||||
begin
|
||||
BeginUpdate; // disable updates
|
||||
Clear;
|
||||
FreeAndNil(fCategories);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TCustomCircleDiagramControl.Clear;
|
||||
begin
|
||||
if CategoryCount=0 then exit;
|
||||
BeginUpdate;
|
||||
try
|
||||
while CategoryCount>0 do
|
||||
Categories[0].Free;
|
||||
fCategories.Delete(CategoryCount-1);
|
||||
finally
|
||||
EndUpdate;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user