Explain wxASSERT in COMMIT::Stage

This commit is contained in:
John Beard 2023-07-02 18:50:57 +01:00
parent ef8cf2d12b
commit 10d32bb1d6
1 changed files with 2 additions and 1 deletions

View File

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