LCL-GTK2: Fix designer behavior when Top/Left/Width/Height is selected in Object Inspector. Issue #33426, patch from accorp.

git-svn-id: trunk@57604 -
This commit is contained in:
juha 2018-04-05 02:09:02 +00:00
parent 9181c52089
commit 067144af2d

View File

@ -2292,7 +2292,7 @@ begin
or (FPropertyEditorHook = nil)
or (FPropertyEditorHook.LookupRoot = FCurrentEditorLookupRoot));
if Result and CheckFocus then begin
FocusedControl:=FindControl(GetFocus);
FocusedControl:=FindOwnerControl(GetFocus);
if (FocusedControl<>nil) and (FocusedControl<>Self)
and (not IsParentOf(FocusedControl)) then
Result:=false;