mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 02:38:13 +02:00
Designer: Fix a crash bug caused by r61974 #dcb8bd49fb. Top form has no Owner.
git-svn-id: trunk@62001 -
This commit is contained in:
parent
0507fec465
commit
6362b3d71a
@ -1878,8 +1878,9 @@ begin
|
||||
if aPersistent is TComponent then begin
|
||||
Comp := TComponent(aPersistent);
|
||||
compName := Comp.Name;
|
||||
if Comp.Owner <> LookupRoot then // This is a subcomponent.
|
||||
compName := Comp.Owner.Name + '.' + compName; // Add owner to the name.
|
||||
// Add owner to the name of a subcomponent.
|
||||
if Assigned(Comp.Owner) and (Comp.Owner <> LookupRoot) then
|
||||
compName := Comp.Owner.Name + '.' + compName;
|
||||
if Comp.HasParent then
|
||||
parentName := Comp.GetParentComponent.Name;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user