mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 06:38:06 +02:00
anchordocking: prevent AV
git-svn-id: trunk@51142 -
This commit is contained in:
parent
3a6b0c9da3
commit
bd5f13d1e9
@ -1331,7 +1331,7 @@ begin
|
||||
// check parent
|
||||
if (NodeType=adltnNone) and (Parent<>nil) then
|
||||
raise EAnchorDockLayoutError.Create('invalid parent, root node');
|
||||
if (NodeType=adltnCustomSite) and (Parent.NodeType<>adltnNone) then
|
||||
if (NodeType=adltnCustomSite) and (Parent<>nil) and (Parent.NodeType<>adltnNone) then
|
||||
raise EAnchorDockLayoutError.Create('invalid parent, custom sites parent must be nil');
|
||||
if (Parent<>nil) and IsSplitter and (Parent.NodeType<>adltnLayout) then
|
||||
raise EAnchorDockLayoutError.Create('invalid parent, splitter needs parent layout');
|
||||
|
Loading…
Reference in New Issue
Block a user