mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Drag footprints only in non-hover selections.
This commit is contained in:
parent
234e4a2ae3
commit
129e37f63d
@ -562,11 +562,9 @@ int EDIT_TOOL::Drag( const TOOL_EVENT& aEvent )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( footprints.size() )
|
if( !sTool->GetSelection().IsHover() && footprints.size() )
|
||||||
{
|
{
|
||||||
/*
|
// Remove non-footprints so box-selection will drag footprints.
|
||||||
* Remove non-footprints
|
|
||||||
*/
|
|
||||||
for( int ii = aCollector.GetCount() - 1; ii >= 0; --ii )
|
for( int ii = aCollector.GetCount() - 1; ii >= 0; --ii )
|
||||||
{
|
{
|
||||||
if( aCollector[ii]->Type() != PCB_FOOTPRINT_T )
|
if( aCollector[ii]->Type() != PCB_FOOTPRINT_T )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user