mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 09:29:35 +02:00
designer: fix clipping rectangle for the csInline non-visual children
git-svn-id: trunk@23133 -
This commit is contained in:
parent
60f580fe1a
commit
3c92edd5c6
@ -3014,7 +3014,8 @@ begin
|
||||
FDDC.BeginPainting;
|
||||
FDDC.Canvas.SaveHandleState;
|
||||
OwnerRect := TControl(AComponent).ClientRect;
|
||||
GetParentFormRelativeClientOrigin(AComponent);
|
||||
Diff := GetParentFormRelativeClientOrigin(AComponent);
|
||||
OffsetRect(OwnerRect, Diff.X, Diff.Y);
|
||||
with OwnerRect do
|
||||
RGN := CreateRectRGN(Left, Top, Right, Bottom);
|
||||
SelectClipRGN(FDDC.DC, RGN);
|
||||
@ -3026,9 +3027,9 @@ begin
|
||||
FDDC.Canvas.RestoreHandleState;
|
||||
FDDC.EndPainting;
|
||||
end;
|
||||
end else begin
|
||||
end
|
||||
else
|
||||
TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, AComponent.Owner);
|
||||
end;
|
||||
|
||||
if not ComponentIsIcon(AComponent) or (AComponent.Owner = nil) then
|
||||
Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user