mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 02:21:04 +02:00
LCL: Make sure NewDockSite is assigned in TContol.Dock.
git-svn-id: trunk@56142 -
This commit is contained in:
parent
4d597500d4
commit
bdb1578f08
@ -4665,7 +4665,8 @@ begin
|
||||
if OldHostDockSite<>nil then OldHostDockSite.DoRemoveDockClient(Self);
|
||||
end;
|
||||
finally
|
||||
if (FHostDockSite<>NewDockSite) and (NewDockSite.FDockClients<>nil) then
|
||||
if (FHostDockSite<>NewDockSite)
|
||||
and (NewDockSite<>nil) and (NewDockSite.FDockClients<>nil) then
|
||||
NewDockSite.FDockClients.Remove(Self);
|
||||
Exclude(FControlState, csDocking);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user