Fix over-zealous wire-grabbing for drag.

This commit is contained in:
Jeff Young 2019-05-01 12:56:03 +01:00
parent a61bbea4bd
commit 0ea156042b
1 changed files with 2 additions and 1 deletions

View File

@ -501,7 +501,8 @@ int SCH_EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
item->ClearFlags( STARTPOINT | ENDPOINT );
}
for( unsigned i = 0; i < selection.GetSize(); ++i )
int originalEnd = selection.GetSize();
for( unsigned i = 0; i < originalEnd && i < selection.GetSize(); ++i )
{
SCH_ITEM* item = static_cast<SCH_ITEM*>( selection.GetItem( i ) );