Store parent object when creating a COMMIT.

This commit is contained in:
Maciej Suminski 2016-05-12 13:55:58 +02:00
parent b661993427
commit dac7c5aa1f
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ COMMIT& COMMIT::Stage( EDA_ITEM* aItem, CHANGE_TYPE aChangeType )
if( m_changedItems.find( parent ) != m_changedItems.end() )
return *this; // item already modifed once
makeEntry( aItem, CHT_MODIFY, true );
makeEntry( parent, CHT_MODIFY, true );
return *this;
}
@ -91,7 +91,7 @@ COMMIT& COMMIT::Stage( EDA_ITEM* aItem, CHANGE_TYPE aChangeType )
void COMMIT::Stage( const PICKED_ITEMS_LIST& aItems, CHANGE_TYPE aChangeType )
{
for( int i = 0; i < aItems.GetCount(); i++ )
for( unsigned int i = 0; i < aItems.GetCount(); i++ )
Stage( aItems.GetPickedItem( i ), aChangeType );
}