Fix overly agressive assert.

An item can be added for group/ungroup and add/delete.
This commit is contained in:
Jeff Young 2023-12-16 16:20:36 +00:00
parent 9fb06f95a0
commit a52da69c03
1 changed files with 0 additions and 4 deletions

View File

@ -55,14 +55,10 @@ COMMIT& COMMIT::Stage( EDA_ITEM* aItem, CHANGE_TYPE aChangeType, BASE_SCREEN* aS
switch( aChangeType & CHT_TYPE )
{
case CHT_ADD:
wxASSERT_MSG( m_changedItems.find( aItem ) == m_changedItems.end(),
wxT( "Item already staged for commit" ) );
makeEntry( aItem, CHT_ADD | flag, nullptr, aScreen );
return *this;
case CHT_REMOVE:
wxASSERT_MSG( m_deletedItems.find( aItem ) == m_deletedItems.end(),
wxT( "Item already staged for deletion" ) );
m_deletedItems.insert( aItem );
makeEntry( aItem, CHT_REMOVE | flag, nullptr, aScreen );
return *this;