Don't check for visibles in the Footprint Editor.

Everything is drawn anyway, and we crash if the viewPrivData
hasn't been allocated yet.

Fixes: lp:1785716
* https://bugs.launchpad.net/kicad/+bug/1785716
This commit is contained in:
Jeff Young 2018-08-07 18:37:41 +01:00
parent a1e0735853
commit 84504599ce
1 changed files with 4 additions and 1 deletions

View File

@ -1658,7 +1658,10 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
if( m_multiple && !m_editModules )
return false;
return view()->IsVisible( aItem ) && board()->IsLayerVisible( aItem->GetLayer() );
if( !m_editModules && !view()->IsVisible( aItem ) )
return false;
break;
case PCB_MODULE_EDGE_T:
case PCB_PAD_T: