Avoid ghosting items in original location when pasting.

This commit is contained in:
Jeff Young 2019-08-29 23:55:25 +01:00
parent 02a7a79e0d
commit 71c7bf3274
2 changed files with 4 additions and 0 deletions

View File

@ -1061,6 +1061,9 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
// Reset flags for subsequent move operation
item->SetFlags( IS_NEW | IS_PASTED | IS_MOVED );
// Start out hidden so the pasted items aren't "ghosted" in their original location
// before being moved to the current location.
getView()->Hide( item, true );
}
if( sheetsPasted )

View File

@ -591,6 +591,7 @@ void SCH_MOVE_TOOL::moveItem( EDA_ITEM* aItem, VECTOR2I aDelta, bool isDrag )
break;
}
getView()->Hide( aItem, false );
aItem->SetFlags( IS_MOVED );
}