Clear IS_NEW flags on commit.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15037
This commit is contained in:
parent
1c13f5a0db
commit
aa6d9ad69a
|
@ -252,6 +252,8 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
|
|||
|
||||
bulkAddedItems.push_back( schItem );
|
||||
|
||||
schItem->ClearFlags( IS_NEW );
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -1771,9 +1771,6 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
|
|||
|
||||
commit.Added( (SCH_ITEM*) item, m_frame->GetScreen() );
|
||||
|
||||
// Reset flags for subsequent move operation
|
||||
item->SetFlags( IS_NEW | IS_PASTED | IS_MOVING );
|
||||
|
||||
// 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 );
|
||||
|
|
Loading…
Reference in New Issue