LCL: TControl.Dock: clean up if docking failed

git-svn-id: trunk@23032 -
This commit is contained in:
mattias 2009-12-08 15:35:26 +00:00
parent 54e0d61ef7
commit efd8836a89

View File

@ -3872,6 +3872,8 @@ begin
if OldHostDockSite<>nil then OldHostDockSite.DoRemoveDockClient(Self);
end;
finally
if (FHostDockSite<>NewDockSite) and (NewDockSite.FDockClients<>nil) then
NewDockSite.FDockClients.Remove(Self);
Exclude(FControlState, csDocking);
end;
end;