Browse Source

Avoid ghosting items in original location when pasting.

pull/15/head
Jeff Young 6 years ago
parent
commit
71c7bf3274
  1. 3
      eeschema/tools/sch_editor_control.cpp
  2. 1
      eeschema/tools/sch_move_tool.cpp

3
eeschema/tools/sch_editor_control.cpp

@ -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 )

1
eeschema/tools/sch_move_tool.cpp

@ -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…
Cancel
Save