mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-28 01:48:26 +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;
|
EnableAllAutoSizing;
|
||||||
end;
|
end;
|
||||||
{$IFDEF VerboseAnchorDockRestore}
|
{$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}
|
{$ENDIF}
|
||||||
Result:=true;
|
Result:=true;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user