Enabled PNS for selected items.

This commit is contained in:
Maciej Suminski 2014-02-03 18:09:17 +01:00
parent f6aa447036
commit f87b6962e0
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ PNS_ITEM* ROUTER_TOOL::pickSingleItem( const VECTOR2I& aWhere, int aNet, int aLa
if( !IsCopperLayer( item->GetLayers().Start() ) )
continue;
if( item->GetParent() && !item->GetParent()->ViewIsVisible() )
if( item->GetParent() && !item->GetParent()->ViewIsVisible() &&
!item->GetParent()->IsSelected() )
continue;
if( aNet < 0 || item->GetNet() == aNet )