diff --git a/lcl/interfaces/gtk2/gtk2wscontrols.pp b/lcl/interfaces/gtk2/gtk2wscontrols.pp index 3451decf38..fea4b6a6a1 100644 --- a/lcl/interfaces/gtk2/gtk2wscontrols.pp +++ b/lcl/interfaces/gtk2/gtk2wscontrols.pp @@ -635,7 +635,7 @@ begin if not WSCheckHandleAllocated(AWinControl, 'SetBounds') then Exit; ResizeHandle(AWinControl); - InvalidateLastWFPResult(AWinControl, Rect(ALeft, ATop, AWidth, AHeight)); + InvalidateLastWFPResult(AWinControl, Bounds(ALeft, ATop, AWidth, AHeight)); if not AWinControl.Visible then // Gtk2WSForms.ShowHide will correct visibility exit; if (not (AWinControl is TCustomForm)) or (AWinControl.Parent<>nil)