Fix footprint selection

Commit 72b49acc changed behavior of MODULE::ViewBBox(),
which now includes text fields area. This caused problems
with selecting footprints with relatively large text fields.
This patch fixes this problem by using MODULE::GetBoundingBox instead.

Fixes: lp:1776942
* https://bugs.launchpad.net/kicad/+bug/1776942
This commit is contained in:
Andrzej Wolski 2018-06-15 00:10:35 +02:00 committed by Seth Hillbrand
parent b82bf7c449
commit 316ff2898d
1 changed files with 1 additions and 1 deletions

View File

@ -1613,7 +1613,7 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
return false;
float viewArea = getView()->GetViewport().GetArea();
float modArea = aItem->ViewBBox().GetArea();
float modArea = aItem->GetBoundingBox().GetArea();
// Do not select modules that are larger the view area
// (most likely footprints representing shield connectors)