Fix Pack & Move footprints when working with groups.

This commit is contained in:
Alex 2022-12-09 20:42:35 +03:00
parent c1f82d0c80
commit b4b25a7009
1 changed files with 4 additions and 0 deletions

View File

@ -195,6 +195,10 @@ int EDIT_TOOL::PackAndMoveFootprints( const TOOL_EVENT& aEvent )
PCB_SELECTION& selection = m_selectionTool->RequestSelection(
[]( const VECTOR2I& aPt, GENERAL_COLLECTOR& aCollector, PCB_SELECTION_TOOL* sTool )
{
sTool->FilterCollectorForMarkers( aCollector );
sTool->FilterCollectorForHierarchy( aCollector, true );
sTool->FilterCollectorForFreePads( aCollector );
// Iterate from the back so we don't have to worry about removals.
for( int i = aCollector.GetCount() - 1; i >= 0; --i )
{