Avoid ghosting items in original location when pasting.
This commit is contained in:
parent
02a7a79e0d
commit
71c7bf3274
|
@ -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 )
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue