Browse Source

Relax selection discard rules for footprints with area larger than the viewport

Normally working at a zoom level when a footprint is not fully displayed
indicates that the user modifies other components. Selection Tool used
to discard footprints that had area larger than the viewport area, but
it may make sense to select them if there are no other candidates.

Fixes: lp:1789578
* https://bugs.launchpad.net/kicad/+bug/1789578
pull/13/head
Maciej Suminski 7 years ago
parent
commit
5993b33010
  1. 8
      pcbnew/tools/selection_tool.cpp

8
pcbnew/tools/selection_tool.cpp

@ -1620,14 +1620,6 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
if( m_editModules )
return false;
float viewArea = getView()->GetViewport().GetArea();
float modArea = aItem->GetBoundingBox().GetArea();
// Do not select modules that are larger the view area
// (most likely footprints representing shield connectors)
if( viewArea > 0.0 && modArea > viewArea )
return false;
// Allow selection of footprints if at least one draw layer is on and
// the appropriate LAYER_MOD is on

Loading…
Cancel
Save