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:
parent
a1e0735853
commit
84504599ce
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue