7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 16:10:10 +00:00

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

View File

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