mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 11:48:31 +02:00
IDE: fixed GetParentFormRelativeTopLeft for nested non visual components
git-svn-id: trunk@23100 -
This commit is contained in:
parent
57d950f3f9
commit
17ddc6d07d
@ -146,7 +146,7 @@ begin
|
||||
begin
|
||||
Parent:=TWinControl(Component.Owner);
|
||||
ParentForm := GetParentForm(Parent);
|
||||
if ParentForm<>Parent then
|
||||
if (ParentForm<>nil) and (ParentForm<>Parent) then
|
||||
begin
|
||||
p:=Parent.ClientOrigin;
|
||||
FormOrigin := ParentForm.ClientOrigin;
|
||||
|
Loading…
Reference in New Issue
Block a user