Avoid loading duplicate shapes due to hierarchy structure

Fix https://gitlab.com/kicad/code/kicad/-/issues/9416
Fix https://gitlab.com/kicad/code/kicad/-/issues/6107
This commit is contained in:
Marek Roszko 2022-03-09 21:30:58 -05:00
parent 16a266301a
commit 2de4906d65
1 changed files with 1 additions and 1 deletions

View File

@ -1020,7 +1020,7 @@ bool processLabel( const TDF_Label& aLabel, DATA& aData, SGNODE* aParent,
if( nullptr != aItems )
aItems->push_back( pptr );
if( stype != TopAbs_SOLID && shapeLabel.HasChild() )
if( !aData.m_assy->IsSimpleShape( shapeLabel ) && shapeLabel.HasChild() )
{
wxLogTrace( MASK_OCE, wxT( "Label %s has children" ), labelTag );
TDF_ChildIterator it;