Increase the area ratio threshold for rejecting large footprints in selection

This commit is contained in:
Maciej Suminski 2018-02-28 16:59:43 +01:00
parent 88fb4c57e5
commit fef1ba9993
1 changed files with 2 additions and 2 deletions

View File

@ -1594,9 +1594,9 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
float viewArea = getView()->GetViewport().GetArea(); float viewArea = getView()->GetViewport().GetArea();
float modArea = aItem->ViewBBox().GetArea(); float modArea = aItem->ViewBBox().GetArea();
// Do not select modules that cover more than 90% of the view area // Do not select modules that are larger the view area
// (most likely footprints representing shield connectors) // (most likely footprints representing shield connectors)
if( viewArea > 0.0 && modArea / viewArea > 0.9 ) if( viewArea > 0.0 && modArea > viewArea )
return false; return false;
if( aItem->IsOnLayer( F_Cu ) && board()->IsElementVisible( LAYER_MOD_FR ) ) if( aItem->IsOnLayer( F_Cu ) && board()->IsElementVisible( LAYER_MOD_FR ) )