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:
parent
b82bf7c449
commit
316ff2898d
|
@ -1613,7 +1613,7 @@ bool SELECTION_TOOL::selectable( const BOARD_ITEM* aItem ) const
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
float viewArea = getView()->GetViewport().GetArea();
|
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
|
// Do not select modules that are larger the view area
|
||||||
// (most likely footprints representing shield connectors)
|
// (most likely footprints representing shield connectors)
|
||||||
|
|
Loading…
Reference in New Issue