Make it easier to select footprints that overlap pads on opposite side

This commit is contained in:
Jon Evans 2019-05-04 22:59:56 -04:00
parent 2f2d48938e
commit 722edda83c
1 changed files with 4 additions and 0 deletions

View File

@ -2170,6 +2170,10 @@ void SELECTION_TOOL::guessSelectionCandidates( GENERAL_COLLECTOR& aCollector,
// footprint then it should be considered for selection
else if( calcRatio( calcArea( mod ), maxArea ) <= footprintToFootprintMinRatio )
continue;
// if there are multiple footprints for selection at this point, prefer
// one that is on the active layer
else if( moduleCount > 1 && mod->GetLayer() == activeLayer )
preferred.insert( mod );
// reject ALL OTHER footprints if there's still something else left
// to select
else if( (int)( rejected.size() + 1 ) < aCollector.GetCount() )