Clear IS_NEW flags on commit.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15037
This commit is contained in:
Jeff Young 2023-06-23 15:29:39 +01:00
parent 1c13f5a0db
commit aa6d9ad69a
2 changed files with 2 additions and 3 deletions

View File

@ -252,6 +252,8 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
bulkAddedItems.push_back( schItem );
schItem->ClearFlags( IS_NEW );
break;
}

View File

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