From 1b9e56b56c6dde596a0739f4fe7ced4aa4bb8443 Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 19 Dec 2022 22:04:09 +0100 Subject: [PATCH] lcl: fixed TWinControl.GetClientRect wcfBoundsRealized, issue #40052 --- lcl/include/wincontrol.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/include/wincontrol.inc b/lcl/include/wincontrol.inc index 61e907752a..298bba7c02 100644 --- a/lcl/include/wincontrol.inc +++ b/lcl/include/wincontrol.inc @@ -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