mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 17:29:27 +02:00
IDE: designer: fixed DrawNonVisualComponent when frame is in a groupbox on a form
git-svn-id: trunk@22844 -
This commit is contained in:
parent
a0d2779d55
commit
446308e0f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user