Fix multiple-footprint drag.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19101
This commit is contained in:
Jeff Young
2024-12-02 12:43:57 +00:00
parent 4ae7381fcd
commit bb533f3f4a
2 changed files with 17 additions and 16 deletions
+9 -2
View File
@@ -562,9 +562,16 @@ int EDIT_TOOL::Drag( const TOOL_EVENT& aEvent )
}
}
if( footprints.size() == (unsigned) aCollector.GetCount() )
if( footprints.size() )
{
// We can drag multiple footprints; no need to whittle down selection.
/*
* Remove non-footprints
*/
for( int ii = aCollector.GetCount() - 1; ii >= 0; --ii )
{
if( aCollector[ii]->Type() != PCB_FOOTPRINT_T )
aCollector.Remove( ii );
}
}
else if( tracks.size() || vias.size() )
{