designer: cleanup

git-svn-id: trunk@22835 -
This commit is contained in:
paul 2009-11-27 17:43:45 +00:00
parent 1d9513d837
commit 271c760dc1

View File

@ -2898,15 +2898,10 @@ var
IconRect, TextRect: TRect; IconRect, TextRect: TRect;
TextSize: TSize; TextSize: TSize;
IsSelected: Boolean; IsSelected: Boolean;
Root: TComponent;
begin begin
// also call draw for the inline components // also call draw for the inline components children
if csInline in AComponent.ComponentState then if csInline in AComponent.ComponentState then
begin TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, AComponent);
Root := AComponent;
TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, Root);
end else
Root := FLookupRoot;
if not ComponentIsIcon(AComponent) then if not ComponentIsIcon(AComponent) then
Exit; Exit;