Don't draw titlebar for untitled groups.
Fixes https://gitlab.com/kicad/code/kicad/issues/9181
This commit is contained in:
parent
5c07441e24
commit
7b07b1650c
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue