Fixed an assert in DHEAD::append()

The previous one incorrectly expected the appended items to belong to
the target list, instead of the source list.
This commit is contained in:
Maciej Suminski 2018-05-11 10:23:40 +02:00
parent 2ed24a46b2
commit f73b9a55a7
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ void DHEAD::append( DHEAD& aList )
// Change the item's list to me. // Change the item's list to me.
for( EDA_ITEM* item = aList.first; item; item = item->Next() ) for( EDA_ITEM* item = aList.first; item; item = item->Next() )
{ {
CHECK_OWNERSHIP( item ); wxASSERT( item->GetList() == &aList );
item->SetList( this ); item->SetList( this );
} }