Check for nested buses when highlighting

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4531
This commit is contained in:
Jon Evans 2020-05-24 16:15:22 -04:00
parent 28a4813c71
commit 699985cd97
1 changed files with 11 additions and 0 deletions

View File

@ -949,6 +949,17 @@ int SCH_EDITOR_CONTROL::UpdateNetHighlighting( const TOOL_EVENT& aEvent )
highlight = true;
break;
}
else if( member->IsBus() )
{
for( auto& child_member : member->Members() )
{
if( child_member->Name() == itemConn->Name() )
{
highlight = true;
break;
}
}
}
}
}
else if( selectedConn && itemConn && selectedName == itemConn->Name() )