mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:39:28 +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
|
begin
|
||||||
Parent:=TWinControl(Component.Owner);
|
Parent:=TWinControl(Component.Owner);
|
||||||
ParentForm := GetParentForm(Parent);
|
ParentForm := GetParentForm(Parent);
|
||||||
if ParentForm<>Parent then
|
if (ParentForm<>nil) and (ParentForm<>Parent) then
|
||||||
begin
|
begin
|
||||||
p:=Parent.ClientOrigin;
|
p:=Parent.ClientOrigin;
|
||||||
FormOrigin := ParentForm.ClientOrigin;
|
FormOrigin := ParentForm.ClientOrigin;
|
||||||
|
Loading…
Reference in New Issue
Block a user