lcl: LDockTree: remove anchors when we remove control from the tree

git-svn-id: trunk@20094 -
This commit is contained in:
paul 2009-05-21 08:10:41 +00:00
parent 071f4c60e7
commit 05c0578025

View File

@ -1367,6 +1367,7 @@ begin
begin
ParentZone := RemoveZone.Parent as TLazDockZone;
RemoveZone.FreeSubComponents;
BreakAnchors(RemoveZone);
if ParentZone <> nil then
ParentZone.Remove(RemoveZone);
RemoveZone.Free;