Make vias selectable even if top and bottom layer are hidden

This commit is contained in:
Andrzej Wolski 2018-03-21 22:45:49 +01:00 committed by Jon Evans
parent 79fe134495
commit 4152069504
1 changed files with 1 additions and 4 deletions

View File

@ -1577,10 +1577,7 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
} }
// For vias it is enough if only one of its layers is visible // For vias it is enough if only one of its layers is visible
PCB_LAYER_ID top, bottom; return ( board()->GetVisibleLayers() & via->GetLayerSet() ).any();
via->LayerPair( &top, &bottom );
return board()->IsLayerVisible( top ) || board()->IsLayerVisible( bottom );
} }
break; break;