AnchorDocking: Prevent a crash when closing the IDE. Patch from Ondrej Pokorny.

git-svn-id: trunk@49757 -
This commit is contained in:
juha 2015-09-04 18:48:50 +00:00
parent 6c11debd0c
commit dabd4106ff

View File

@ -4247,7 +4247,8 @@ end;
procedure TAnchorDockHostSite.DoDock(NewDockSite: TWinControl; var ARect: TRect);
begin
inherited DoDock(NewDockSite, ARect);
DockMaster.SimplifyPendingLayouts;
if DockMaster <> nil then
DockMaster.SimplifyPendingLayouts;
end;
procedure TAnchorDockHostSite.SetParent(NewParent: TWinControl);