Don't draw titlebar for untitled groups.

Fixes https://gitlab.com/kicad/code/kicad/issues/9181
This commit is contained in:
Jeff Young 2021-09-17 21:35:04 +01:00
parent 5c07441e24
commit 7b07b1650c
1 changed files with 5 additions and 0 deletions

View File

@ -1637,6 +1637,8 @@ void PCB_PAINTER::draw( const PCB_GROUP* aGroup, int aLayer )
}
else
{
// Neither selected nor entered; draw nothing at the group level (ie: only draw
// its members)
return;
}
@ -1656,6 +1658,9 @@ void PCB_PAINTER::draw( const PCB_GROUP* aGroup, int aLayer )
wxString name = aGroup->GetName();
if( name.IsEmpty() )
return;
int ptSize = 12;
int scaledSize = abs( KiROUND( m_gal->GetScreenWorldMatrix().GetScale().x * ptSize ) );
int unscaledSize = Mils2iu( ptSize );