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
(cherry-picked from commit 5993b330
)
This commit is contained in:
parent
14e42fec7e
commit
280573e9af
|
@ -1617,14 +1617,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…
Reference in New Issue