Don't add item to view twice.

This commit is contained in:
Jeff Young 2018-09-14 23:53:38 +01:00
parent 33386ec980
commit 3b59c6cf0a
1 changed files with 1 additions and 5 deletions

View File

@ -753,11 +753,7 @@ void SCH_EDIT_FRAME::PrepareMoveItem( SCH_ITEM* aItem )
SetRepeatItem( NULL );
if( aItem->IsNew() )
{
GetCanvas()->GetView()->Add( aItem );
}
else
if( !aItem->IsNew() )
{
if( (aItem->Type() == SCH_SHEET_PIN_T) || (aItem->Type() == SCH_FIELD_T) )
SetUndoItem( (SCH_ITEM*) aItem->GetParent() );