mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 01:37:12 +01:00
designer: cleanup
git-svn-id: trunk@22835 -
This commit is contained in:
parent
1d9513d837
commit
271c760dc1
@ -2898,15 +2898,10 @@ var
|
||||
IconRect, TextRect: TRect;
|
||||
TextSize: TSize;
|
||||
IsSelected: Boolean;
|
||||
Root: TComponent;
|
||||
begin
|
||||
// also call draw for the inline components
|
||||
// also call draw for the inline components children
|
||||
if csInline in AComponent.ComponentState then
|
||||
begin
|
||||
Root := AComponent;
|
||||
TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, Root);
|
||||
end else
|
||||
Root := FLookupRoot;
|
||||
TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, AComponent);
|
||||
|
||||
if not ComponentIsIcon(AComponent) then
|
||||
Exit;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user