mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 01:57:57 +02:00
AnchorDocking: Fixed SIGSEGV when starting application with -dVerboseAnchorDockRestore.
git-svn-id: trunk@60107 -
This commit is contained in:
parent
90b424680b
commit
c3186f7af3
@ -3483,7 +3483,11 @@ begin
|
||||
EnableAllAutoSizing;
|
||||
end;
|
||||
{$IFDEF VerboseAnchorDockRestore}
|
||||
DebugWriteChildAnchors(Application.MainForm,true,false);
|
||||
if Assigned(Application.MainForm) then
|
||||
DebugWriteChildAnchors(Application.MainForm,true,false)
|
||||
else
|
||||
if (ControlCount>0) and (Controls[0] is TWinControl) then
|
||||
DebugWriteChildAnchors(TWinControl(Controls[0]),true,false);
|
||||
{$ENDIF}
|
||||
Result:=true;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user