Browse Source

Selection: skip sloppiness pruning if invalid

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7320
6.0.7
Jon Evans 5 years ago
parent
commit
b5e9a949bc
  1. 9
      pcbnew/tools/pcb_selection_tool.cpp

9
pcbnew/tools/pcb_selection_tool.cpp

@ -2374,10 +2374,13 @@ void PCB_SELECTION_TOOL::GuessSelectionCandidates( GENERAL_COLLECTOR& aCollector
// Prune sloppier items
for( std::pair<BOARD_ITEM*, int> pair : itemsBySloppiness )
if( minSlop < INT_MAX )
{
if( pair.second > minSlop + pixel )
aCollector.Transfer( pair.first );
for( std::pair<BOARD_ITEM*, int> pair : itemsBySloppiness )
{
if( pair.second > minSlop + pixel )
aCollector.Transfer( pair.first );
}
}
// If the user clicked on a small item within a much larger one then it's pretty clear

Loading…
Cancel
Save