IDE: designer: fixed DrawNonVisualComponent when frame is in a groupbox on a form

git-svn-id: trunk@22844 -
This commit is contained in:
mattias 2009-11-28 00:27:27 +00:00
parent a0d2779d55
commit 446308e0f5

View File

@ -2991,11 +2991,14 @@ var
IconRect, TextRect: TRect;
TextSize: TSize;
IsSelected: Boolean;
Root: TComponent;
begin
// also call draw for the inline components children
if csInline in AComponent.ComponentState then
TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, AComponent);
if (csInline in AComponent.ComponentState) or (AComponent.Owner=nil) then
Root:=AComponent
else
Root:=AComponent.Owner;
TComponentAccess(AComponent).GetChildren(@DrawNonVisualComponent, Root);
if not ComponentIsIcon(AComponent) then
Exit;
// actual draw