pcbnew: Handle module ratsnest

Ensure we display the module ratsnest appropriately
This commit is contained in:
Seth Hillbrand 2020-08-10 12:09:32 -07:00
parent 211cbadc24
commit 5096deeb3b
1 changed files with 1 additions and 6 deletions

View File

@ -662,11 +662,6 @@ const std::vector<CN_EDGE> CONNECTIVITY_DATA::GetRatsnestForItems( std::vector<B
for( auto item : aItems ) for( auto item : aItems )
{ {
auto conn_item = dyn_cast<BOARD_CONNECTED_ITEM*>( item );
if( !conn_item )
continue;
if( item->Type() == PCB_MODULE_T ) if( item->Type() == PCB_MODULE_T )
{ {
auto component = static_cast<MODULE*>( item ); auto component = static_cast<MODULE*>( item );
@ -677,7 +672,7 @@ const std::vector<CN_EDGE> CONNECTIVITY_DATA::GetRatsnestForItems( std::vector<B
item_set.insert( pad ); item_set.insert( pad );
} }
} }
else else if( auto conn_item = dyn_cast<BOARD_CONNECTED_ITEM*>( item ) )
{ {
item_set.insert( conn_item ); item_set.insert( conn_item );
nets.insert( conn_item->GetNetCode() ); nets.insert( conn_item->GetNetCode() );