Don't collect connected labels on a paste.

Fixes https://gitlab.com/kicad/code/kicad/issues/4311
This commit is contained in:
Jeff Young 2020-05-03 21:47:27 +01:00
parent bdf9491682
commit 5bed201a23
1 changed files with 9 additions and 3 deletions

View File

@ -651,8 +651,11 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, const VECTOR2I& aDelta )
{
SCH_LINE* line = static_cast<SCH_LINE*>( aItem );
if( !aItem->IsNew() )
{
if( aItem->HasFlag( STARTPOINT ) || aItem->HasFlag( ENDPOINT ) )
collectLabels( line );
}
if( aItem->HasFlag( STARTPOINT ) )
line->MoveStart( (wxPoint) aDelta );
@ -660,8 +663,11 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, const VECTOR2I& aDelta )
if( aItem->HasFlag( ENDPOINT ) )
line->MoveEnd( (wxPoint) aDelta );
if( !aItem->IsNew() )
{
adjustLabels( line );
}
}
break;
case SCH_PIN_T: