Don't add item to view twice.
This commit is contained in:
parent
33386ec980
commit
3b59c6cf0a
|
@ -753,11 +753,7 @@ void SCH_EDIT_FRAME::PrepareMoveItem( SCH_ITEM* aItem )
|
||||||
|
|
||||||
SetRepeatItem( NULL );
|
SetRepeatItem( NULL );
|
||||||
|
|
||||||
if( aItem->IsNew() )
|
if( !aItem->IsNew() )
|
||||||
{
|
|
||||||
GetCanvas()->GetView()->Add( aItem );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if( (aItem->Type() == SCH_SHEET_PIN_T) || (aItem->Type() == SCH_FIELD_T) )
|
if( (aItem->Type() == SCH_SHEET_PIN_T) || (aItem->Type() == SCH_FIELD_T) )
|
||||||
SetUndoItem( (SCH_ITEM*) aItem->GetParent() );
|
SetUndoItem( (SCH_ITEM*) aItem->GetParent() );
|
||||||
|
|
Loading…
Reference in New Issue