lcl: fixed TWinControl.GetClientRect wcfBoundsRealized, issue #40052

This commit is contained in:
mattias 2022-12-19 22:04:09 +01:00
parent f87fe0303d
commit 1b9e56b56c

View File

@ -4050,7 +4050,7 @@ begin
or (Height<>InterfaceHeight) then
begin
// the LCL is not in sync with the interface
if wcfBoundsRealized in FWinControlFlags then
if not (wcfBoundsRealized in FWinControlFlags) then
begin
// no bounds were sent yet to the interface and it didn't initialize
// them on its own